Search Tutorials
Putting it all Together Next, you need to assemble all the template movie clips. First create a movie clip (the duplication control clip) that will contain all the menu items and drag on an instance of menu_template_clip onto the stage. This clip is called Menu Item Group in the example FLA. This clip isn't strictly necesary, but it is very handy if you ever want to move or affect all menu items at once. Here is what the timeline should look like:
This clip handles the duplication and initialization of the menu items based on the data loaded from the text file. The first frame checks whether the variables have been loaded. The second loops back to frame 1 if it hasn't. If it has the playhead jumps to and plays frame 3 (see code on the next page).
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|