Flash Tutorials

Start Stop Movieclips

How to control Flash Movieclip symbols

Start Stop Movieclips in Flash

How to control Flash Movieclip symbols using actionscript

While working with Movieclips in Flash you will find it necessary to start and stop the animation at runtime. In this Flash tutorial you'll learn how to control Movieclips using basic actionscript code. Movieclips can be easily controlled using Flash actionscript and the instance name of the Movieclip symbol is used to control it using Actionscript commands.

You Are Here ::: Home >> Free Tutorials >> Flash Tutorials >> Starting & Stopping Movieclips with Flash

Follow the steps given below:

Controlling Movieclips using Actionscript

  1. Create a Movieclip (Refer the Flash Photo Masking tutorial for this example) with some animation and name the instance say, 'mask_mc'.
  2. Create a Button for Start and Stop action of the movieclip and name them as 'start_btn' and 'stop_btn' respectively.
  3. Write the following Actionscript code for the 2 Buttons as given below:
  4. Start Button
    on(press)
    {
    mask_mc.play();
    }

    Stop Button
    on(press)
    {
    mask_mc.stop();
    }

  5. Save your work and test the Movie (Ctrl + Enter). Thats it you have learnt how to control movieclips in Flash using Actionscript.


Fig: Start & Stop Movieclip using Actionscript

Software Required

Compatible Versions of Flash for this Tutorial

Recommended Version: Adobe Flash Professional CS5Recommended Version: Adobe Flash CS4 Professional
Flash CS5 Professional | Flash CS4 Professional
Note: For uses of lower versions of Flash some visual interface images would differ.
Recommended Version: Adobe Flash CS5 Professional
Please like, +1, link to and share this SmartWebby resource if you found it helpful. Thanks!