Client LoginView your Shopping CartHelp & Frequently Asked QuestionsEmail Us
Home Services Portfolio Web Design Pricing Dreamweaver Templates Web Applications Free Tutorials About Contact Us
Services > CSS Web Design | Professional Logo Design | ASP.net, ASP & PHP Programming | Flash Animation & Programming | Reliable Web Hosting | Website Maintenance
Portfolio > Web Design Portfolio | Web Programming Portfolio | Logo Design Portfolio | Web Design Pricing > Custom Web Design | Logo Design | Business Card Design
Web Design Guide > Website Design w/ Dreamweaver & Fireworks | Fireworks CS4 Cool Features | Photo Effects | Text Effects | Graphic Design Ideas | Web Design Ideas
Website Navigation Ideas | CSS Styles Tutorial | Dreamweaver Template | Server Side Includes | Flash Tutorials > Flash Effects | Flash Sound Button | Sound On/Off Button
Flash Preloader | Import External Data | Promotion > SEO Tips | Google Tips & Page Rank | JavaScript > Date Validation | Email Validation | Phone Validation | Tip Boxes

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.

Recommended Version: Adobe Flash CS4 Professional

Compatible Versions of Flash for this Tutorial

Flash MX 2004 & below | Flash 8 | Flash CS3 | Flash CS4
Note: For uses of lower versions of Flash some visual interface images would differ.
Recommended Version: Adobe Flash CS4 Professional
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

We would love to hear your comments and any suggestions on future tutorials we can add to this section. Thanks!

Fill the below form to submit your comments (or suggestions):
Bookmark and Share this web page.
Sponsored Link(s):
Beauty Templates | Business Templates | Christian Templates | CSS Templates | Education Templates | Family Templates | Flash Templates | Free Dreamweaver Templates
Food Templates | General Templates | Government Templates | Health/Medical Templates | Hi-Tech Templates | Kids/Childcare Templates | Low-cost Budget Templates
Personal Templates | Pets Templates | Photography Templates | Profession Templates | Real Estate Templates | Sports Templates | Telecom Templates | Travel Templates
Free Tutorials > Web Design Tutorials | CSS Web Design | Fireworks Tutorials | Dreamweaver Tutorials | Flash Tutorials | SEO Tutorials | Javascript Tutorials | PHP Tutorials