Answered
Duplicating Movie Clips
Hello,
I this is probably a very simple thing to do but I cant find anything which seems to a duplicate movie clip and maybe this function has been completely removed and not recreated at all within the new AS3 where it was available in AS2.
I am wondering if someone can help me with this.
I have attached a snippet of my code below which defines what I am attempting, any help would be appreciated.
Basically all I want to do is duplicate a movieclip in a for loop and have them placed side by side with each other.
Here is my code:
for (i=0; i<10; i++)
{
addChild (_brick);
_brick.x = brick.width * i;
}
Many thanks in advance
Lee
I this is probably a very simple thing to do but I cant find anything which seems to a duplicate movie clip and maybe this function has been completely removed and not recreated at all within the new AS3 where it was available in AS2.
I am wondering if someone can help me with this.
I have attached a snippet of my code below which defines what I am attempting, any help would be appreciated.
Basically all I want to do is duplicate a movieclip in a for loop and have them placed side by side with each other.
Here is my code:
for (i=0; i<10; i++)
{
addChild (_brick);
_brick.x = brick.width * i;
}
Many thanks in advance
Lee