Moving x,y position of all array objects every frame in actionscript 3?
- by Dylan Gallardo
I have my code setup so that I have an movieclip in my library a class called "block" being duplicated multiple times and added into an array like this:
function makeblock(e:Event){
newblock=new block;
newblock.x=10;
newblock.y=10;
addChild(newblock);
myarray[counter] = newblock; //adds a newblock object into array
counter += 1;
}
Then I have a…