- Create a Movieclip (Refer the Flash Photo Masking tutorial for this example) with some animation and name the instance say, 'mask_mc'.
- Create a Button for Start and Stop action of the movieclip and name them as 'start_btn' and 'stop_btn' respectively.
- Write the following Actionscript code for the 2 Buttons as given below:
- Save your work and test the Movie (Ctrl + Enter). Thats it you have learnt how to control movieclips in Flash using Actionscript.
Start Button
on(press)
{
mask_mc.play();
}
Stop Button
on(press)
{
mask_mc.stop();
}
on(press)
{
mask_mc.play();
}
Stop Button
on(press)
{
mask_mc.stop();
}