How to create movie tween selection
buttons:
- In the "buttons" layer:
- Select the rotate button
then in the properties panel
set the instance name
to "rotate_btn".
- Select the scale button
then in the properties panel
set the instance name to "scale_btn".
- Select the fade button
then in the properties panel
set the instance name to "fade_btn".
- Then in the "actions" layer:
- Open the actions panel.
- Enter the following code in
the "Actions-Frame" panel.
rotate_btn.onPress = function(){
gotoAndPlay(2);
}
scale_btn.onPress = function(){
gotoAndPlay(21);
}
fade_btn.onPress = function(){
gotoAndPlay(41);
}
- In the main menu go
to Control
> Test Movie.
|