package
{
import flash.display.MovieClip
public class codepractice2 extends MovieClip//blue words are key words...gives directions
{//Declare Variable here. STEP ONE!!!!
var itemOne:MovieClip;//create a variavle named "itemOne" of type "MovieClip"
var itemTwo:MovieClip;
var itemThree:MovieClip;
public function codepractice2() //name is important...must be same for each container
{
// constructor code
trace("Hello World");
//Fill variables here. STEP TWO!!!
itemOne = new Kitty1; //fill variable named "itemOne" with new instance of library symbol named "Kitty1"
itemTwo=new Star1;
itemThree=new Hill2;
//addChild to the Stage. STEP THREE!!
addChild(itemOne); //add the contents of the variable named "itemOne" as a child of the stage object
addChild(itemTwo);
addChild(itemThree);
//here specify properties of the child
itemOne.x=100
itemOne.y=200
itemOne.scaleX=.55
itemOne.scaleY=.55
itemTwo.x=375
itemTwo.y=65
itemTwo.scaleX=.75
itemTwo.scaleY=.75
itemThree.x=250
itemThree.y=300
itemThree.scaleX=.45
itemThree.scaleY=.45
}
}
}
No comments:
Post a Comment