Flash Game Design  
 
   
 
Tutorials Articles
   
       
 
 
Adding Movieclips with AS 3
A tutorial showing you how to add movieclips with as 3.0
  
Flash website Shooting Bullets Jagged Transition Circular Slideshow
 
 
  Falling Star Text Basic Flash Site Rotatin Gallery Drop Down Menu
 
 
Step 1.

First of all create a new MC (movieclip) in a new FLA file using Flash CS3 or higher.

 
Step 2.
Click "export for actionscript". This will fill in the "class" section with the same name as the MC, and fill in the base class, as shown below.
 
Step 3.
On the first frame of the timeline, enter the code shown below. This will add an instance of the MC to the stage.

Line 1 - Create an instance of player called playerMc

Line 2 - Add playerMc as a child

Line 3 - Position playerMc along the x axis

Line 4 - Position playerMc along the y axis

 
Now that you've learnt how to add movieclips with Actionscript 3, you might be interested in learning about moving movieclips using keys, with as3
 
   
More Flash Tutorials
Funky Flash Site Glitter Graphic Jagged Transition
   
Bubble Flow Text Basic Flash Site Advanced Flash Site
Scroll Gallery Falling Star Text Drop Down Menu
     
Rotating Gallery Shooting Bullets XML menu
     
     
 
Site Copyright © 2006 - 2009 Nick DS. All rights reserved.