-
-
Product Designer
You can either finish making the whole lot of combinations of animations, or you can spend the same time learning how to do it with scripting.
When making dynamic interactive content there are always many ways to do something. Sometimes you will find yourself re-designing the engine of your interactions many times, going from a really long and complex code, to something stupidly simple that makes the same thing with MUCH less code.
In this case I would procede in the following way:
1) I would have the menu be generated dynamically: one CONTAINER MovieClip, within which I would have the buttons created (each button consisting of a MovieClip with a TextField within it).
2) At this point we need something to drive the menu, and we can split it into different tasks:
2.1) A function that will make the CONTAINER slide by the necessary amount to bring the selected button at the same height is the "onesixfor" text.
2.2) A function that changes the color of the buttons (only the button that is closest to the height of "onesixfor" is blue).
2.3) A function that handles the links of the buttons (I figure that when you click a button, another flash movie, with the selected content, will load).
What you need to learn about, to do what I just said is (and you can find all the necessary information in the Flash Help panel, and examples on FlashKit.com):
> MovieClip class
- MovieClip.onEnterFrame();
- MovieClip.onPress();
- MovieClip.createEmptyMovieClip();
- MovieClip.duplicateMovieClip();
> TextField class
- TextField.createTextField();
- TextField.text;
- TextField.color;
> Array class
- Array.push();
> loops (for, with)
Hope this helps,
Ascanio.
p.s.
It's going to be a few headeachs, but it's worth it: ones you have started, you can't stop!
Altruism does not exist. Sustainability must be made profitable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|