Controlling Movieclips using Flash Actionscript

Started by Kalyan, Oct 25, 2008, 05:46 PM

Previous topic - Next topic

Kalyan

Controlling Movieclips using Flash Actionscript

   1. Create a Movieclip 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:

      Start Button
      on(press)
      {
      mask_mc.play();
      }

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

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