i have sprites in the library with linkages in them… how would i create new instances of them if they are stored inside an array?
example:
// obviously this code wont work...
// but i am trying to achieve something like this..
var spriteArray:Array = [wheels, body, floor];
var spriteToBeGrabbed:Sprite = spriteArray[2];
var theSprite:Sprite = new spriteToBeGrabbed;
theSprite.x = 20;
theSprite.y = 30;
addChild(theSprite);