|
|
#1 (permalink) |
|
Junior Member
Join Date: Jan 2009
Posts: 2
|
Hi there,
Sorry for posting such a basic question but i am really struggling with the firing actions on an item. I have read the help files but i can't seem to follow them (really sorry! i am new to flash). I am using the downloaded file (so i have not attempted to integrate it into another project) So say, for example, i want the Author Program item in the menu to go to frame 5. Would the XML code look like this? <item label="Make Money"/> <subitem label="Author Program" frame="5"/> I am having trouble figuring out what my action scripting should look like? Would anyone be able to help? Many thanks, lolo |
|
|
|
|
|
#3 (permalink) |
|
OYXLUSFlash.com Staff Member
|
Code:
menu_mc.onItemClick= function(node:XMLNode, level:Number){
your_movie_clip.gotoAndStop(Number(node.attributes.frame));
}
This will work when you press either a menu item or a subitem. If you want to restrict it only to subitems, use the following: Code:
menu_mc.onItemClick= function(node:XMLNode, level:Number){
if(level == 2)
your_movie_clip.gotoAndStop(Number(node.attributes.frame));
}
Last edited by Adrian; 01-19-2009 at 07:38 PM. |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 01:32 AM.








Linear Mode
