How to add
actions to button objects:
- Create your tween and place
the actionscript code "stop();" in the last frame
of the tween.
- Create a button in a new
layer.
- Select
the button instance on stage.
- Open the "Actions"
panel.
- Enter this code in the "Actions-Button" panel.
on(Press){
gotoAndPlay(1);
}
- Press Ctrl
+ Enter to test the movie.
|