evan
07-27-2009, 10:08 PM
I am trying to place a three items in a row using a loop:
var placement:uint=100;
var bullet:MovieClip;
for(var i:Number = 0; i < 3; i++)
{trace(placement);
bullet=new Bullet();
bullet.x=placement;
bullet.y=placement+=10;
addChild(bullet);
//placement+=10;
}
It seems to be either displaying the three instances on top of eachother or only once -how do I get it to display as a group?
var placement:uint=100;
var bullet:MovieClip;
for(var i:Number = 0; i < 3; i++)
{trace(placement);
bullet=new Bullet();
bullet.x=placement;
bullet.y=placement+=10;
addChild(bullet);
//placement+=10;
}
It seems to be either displaying the three instances on top of eachother or only once -how do I get it to display as a group?