Search Tutorials
The Menu Button (cont.) Next create the movie clip, menu_template_clip (Ctrl+F8) and place the button in the first frame and add the actions below to it. In this example it links to a frame in a movie. There is no limit to the number of variables you can assume for each template, provided you are willing to enter them all into the data file. In the second frame place a horizonal line; this will act as a dividing line to separate sections.
On (Release)
Comment: Setting a variable at the root level of the movie is vital to keeping the function
Comment: abstract enought to work for *any* menu item.
Comment: Remember that menu_link was set by this clip's host, "Menu Item Group".
Set Variable: "/:goto_link" = menu_link
Begin Tell Target ("/test")
Go to and Stop (/:goto_link)
End Tell Target
End On
Note: The variable called menu_link will provide the necessary information to link to a webpage or another part of the flash movie. This code can be modified to link to external HTML pages using the GET URL statement.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|