ActionScript 2.0 :: Dynamic Menus With Cool Effects?
Dec 13, 2006
I am having trouble working out exactly what is happening behind the scenes when dynamic menus/ submenus get displayed with some effect.I am able to read in an xml file, create a menu, and display submenus with the use of a rollover event. The submenus appear immediately, all at once. However i would like the submenu items to appear with some effect.The "models" button in the top left corner has the features i want.1. With a mouse over i want a menu to appear. The first submenu item to be appear is the last on the list.2. when the mouse drifts off the list, the submenu retracts in the same order it appeared
I am working on an as3 slideshow class and I came across a blog post that gave me the idea to use better transitions than the sliding out and fading I originally intended to use. [URL]The source for that class is available and it is a good starting point but I wanted to check and see if anyone know of similar projects that had more effects. Right now I just have the random explode effect from the above link and before I start working on effects I wanted to see what was out there.
I am trying to make a preloader that has some cool liquid effects. I want it to look like a gas tank being filled up, viewed from the side. I am trying to script it so that the surface of the fuel sloshes around as it fills up the tank, but I just can't figure out a good way to go at it.
I'm trying to create an xml accordion menu that has main menus and a sub menus buttons (movieClips) revealed with a mask. Simple question, How do I stop the mask area which reveals the sub menus catching mouseEvents on the submenus?The main menu button is a movieClip, it has the mask sprite attached to it as a property so it can scale dynamically to reveal the subMenus. They are set as children of the main menu button container. In my code I've set mainMenu.mouseChildern = true. But when the mainMenu is clicked I change mouseEnabeled = false to help prevent the main menu receiving events. This helps on rollOver rollOut events, but when I click or mouseDown on the subMenu the mask catches the event also and activates the main menu again. I've tried the obvious mask.mouseEnabled = false; mask.mouseChildern = false; mask.hitArea = null; and even setting mask.alpha = 0 but this has no effect at all.
I don't understand why the mask has to extend the hitArea property of the mainMenu and why this can't be set to null. It also seems crazy that when mouseChildren = true the parent clip also has to receive notice of the event.
I'm creating a simple game, and I want my dropdown menu to display the character's HP and Money count, which already have values assigned throughout the rest of the flash. ( health = 100; and money = 5; ) However, whenever I try to make the value show in this dropdown menu, it will not display any dynamic text. I've had no trouble making it show anywhere else in the flash , but when I try to make it show within the menu movieclip, it won't.
I've been following an xml tutorial webdesign tutorial, as I'm pretty new to the whole coding side of things, I've copied their code into my own design, which has been going fine up until this point.
In the tutorials the dynamic menus were alligned vertically, in my site I want them to run horizontally, well I managed to suss out how to realign them, the problem is that the spacing between each button is set according to the end of each (invisible) button. This makes each gap a different size and makes the layout look really clunky.
I'm wondering if theres a line of code I can insert, which defines the size of each button according to the size of the text, or alternately, that starts the spacing from the end of the text rather than the button.
I have worked on one which I am almost happy with but there are things wrong with it. (if anyone has any good tutorials or FLAs on this that would be great). But my main problem is now simply just having a button so when you rollover it, it changes colour and when you click it it stays on that colour so you can see which button is currently active. How do people go about scripting buttons to work properly like this? I have this code but it runs into too many problems...
var my_color:Color = new Color(this); my_color.setRGB(0x000000);
I'm trying to build a variety of text generators that I can repurpose for different projects similar to the ones used on this site: [URL] I can get the external text into flash (via xml) but how do I go about breaking those characters apart and animating each letter in? I don't mind doing the work, I just need a few pointers in the right direction.
I am working on a flash file that dynamically displays data coming from (currently two) XML files on screen. I'm filling various text fields and adjusting colours based on startup parameters, etc. All that already works.
It's a live commentary display thing for any sort of sports game (currently focussing on soccer, though) and I have 1 big textfield for the live commentary (coming from one XML file) and various other smaller fields for the score, team names, scorer, etc. (coming from another XML file).
Now I have a question: The content of, for example, the team statistics field is filled by functions that interpret the XML and come up with a list of the players and (if applicable) the goals they shot and the penalties (red and yellow card) they received.
I'm just starting to delve into AS, so this should be easy. I'm applying a simple alpha fade to the onEnterFrame event of a movie clip using AS, and inside that movie clip there is a dynamic text box that gets its content from an XML file. The fade works fine on everything except the text - the whole movie clip fades in, but the text just instantly "jumps into existence".
In "flash website templates" we see some amazing transition effects between the pages, I wonder how they do it? Are they made of flash? or those effects are created in some other application like "after-Effect"? or are there any special tween engine to make effects?I have been searching for a while...but still confused and looking for guidance.
i attach a image on what i must make..but i have like a blackout.. so i hoped u can inspire me for some cool effect?please if so help me also to the code? or at least a demo code so i can make me own?
so i have a project where i will be making a website. I will be using flash to make it interactive and visually appealing. I found a website with a really cool entrance page, iew it n't really know much about the action script language so be as precise and clear
what was done to create the cool effect at this site? [URL]..When the links on the left are rolled-over an image appears in a small window that follows the cursor. Very cool.
I was hoping to learn how to do that, myself, but can't figure it out. No need for a step-by-step tutorial, just a word or two to point me in the right direction.
so maybe this animation is not that cool. But line 'draw-on's like this are quite common and I cannot find an easy way to do this in flash. I have tried masks, but (as far as I can tell) the line path is too complex for a mask. I have tried animating it using shape hints, but flash just gets hopeless confused as to how I want the line to animate on. I could export this as an swf out of AfterEffects, but the file size seems way too big for what the animation is. I have begun to realize that maybe this type of animation is often achieved using actionscript.
I have the following code but it only works when published for flash 6 and I need it to work for flash 8.Ive tried to tweak it but cant get it to work.I think it would be best if I could make a function out of it - ie:call the function like:myTextbox.textEffect("this is some decoding text");My actionscript is coming along but Im still learning.
Code: myString = "this is some decoding text"; charDisplay = myString.length;
I'm using the following code to create a very cool rain effect. Problem is, I only want the rain to last about 10 seconds, then I'd like it to fade away. I can get the background to fade, but the raindrops still appear. How I can accomplish this?
Code: for (i = 0; i < 50; i++) { var newDrop = mcRaindrop.duplicateMovieClip ("mcRaindrop" + i, i); newDrop._x = random (350); newDrop._y = random (20); newDrop._xscale = random (100); [Code] .....
I was taking a look at this site [URL] and really liked the drag functionality to navigate. You can drag up down, left and right. I wanted to try and get the same effect. I would assume creating one big movieclip and adding the drag functionality to that. My concern is that it might not be optimized. Do you think I will need to load content on the fly? Or do you think I will be able to load everything in the initial load and keep it running from there? If there is a specific name for this effect?
I would like to ask your opinions about sites that have multiple themes available and allow the user to change the theme while navigating the site. What do you think about this? Is it a cool or attractive option? Is it unprofessional? Is it worth the work of development? Have you implemented something like this? I have been thinking about developing a system for a site to allow support for multiple themes but I am not sure if that would be professional and worth it.
I am going to build my first ever flash website. how to design cool and stylish websites? Like the flash websites we see at [URL], I don't want to order from web designers there because it's way too much money to buy unique websites, so I was wondering if you guys know any tutorials (other than google) where I can learn how to build these cool and stylish websites? Mainly I want to learn how to build animations such as when the mouse hovers, an animation begins. I already know how to code in ActionScript with Adobe Flash CS5 and Dreamweaver CS5, so I'm not those newbies trying learn new code, I just want to learn how to design Flash Websites with those cool and stylish animation features.
Can anyone tell me how to make a cool water ripple effect? I saw one that I loved on URL... (you'll see it on both the intro and the contact page).Does anyone know how to do that?