News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

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.

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it has been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S post or ALT+P preview