Playing Movie using play();

Playing Movie using play();
Action play(); used to running frame that stoped because action stop();. For more detail see example as follow:
  • Continue step in last post (Stop Movie using stop();).
  • Click layer 1, then add new layer above layer 1 and change name to button.
  • Click frame 10 in button layer, then add new keyframe and create a button in center of stage using rectangle tool.
  • Select button that we make with rectangle tool and convert to symbol by pressing F8, type “play_btn” in name option then choose button in type option.
  • Select play button then open action panel and type this script:
on (release) {
//if button play is pressed then play next frame
play();
}
  • Run movie by pressed CTRL+Enter. When ball is stop, press play button that we make and ball will move again. Action play(); in play button cause movie run again when button is pressed.

Post a Comment

0 Comments

-------- MASUKAN KODE IKLAN 1 --------
-------- MASUKAN KODE IKLAN 2 --------
-------- MASUKAN KODE IKLAN 3 --------
To Top