Ok, what i would like to do is to make an action in the "hit" so that when the user press the button it would go to let say "Scene 2, frame1" but is not letting me put any action in the button it self....how can i do it?
thanks
Printable View
Ok, what i would like to do is to make an action in the "hit" so that when the user press the button it would go to let say "Scene 2, frame1" but is not letting me put any action in the button it self....how can i do it?
thanks
In Flash 4 you could put frame actions inside the button but Flash 5 wont let you. What you need to do is to place an instance of the button on the stage then select it and open the actions panel. Put this code in there:
on (press) {
gotoAndPlay ("Scene 2", 1);
}
Alternatively you can place a movie clip within the button at the "hit" frame then attach code to the movie clip.
Hope this helps you out. Contact me via email@digitallamb.com if you need more help
thanks a lot for your help.
i did what u told me and it keep going from scene1 to scene2 back and forward :( dont know what am i doing wrong.
all i need it to do was put stop in front of your code, thanks