I did this to dynamcy create a instance of a MovieClip whenever my downKey boolean variable was true
var Lasers:Array = [];
if (downKey == true) {
var Laser:MovieClip = new laser();
Laser.name = "Laser" + 1;
addChild(Laser);
Laser.x = 200;
Laser.y = 200;
Lasers[1] = Laser;
}
works fine, but now I would like to update the position of the MovieClips every frame, I understand that it should be in my enter frame function but I dont understand how to access the MovieClips. Thanks in Advance.