Does anyone know if there’s a way to clone a sprite? It’s easy enough with a bitmap since BitmapData can be cloned. Any ideas?
you could trace the sprit as a bitmap and clone it that way, or wrap the sprit in a movie clip and clone the movie clip but for a direct clone im not sure at the moment, does it have to stay a sprit object?
Yes it should stay a Sprite/ be identical.
Cloning a MovieClip is just as impossible as cloning a Sprite, so the wrapper idea wouldn’t be a solution.
While drawing the Sprite onto some BitmapData would clone it visually there’s potentially a lot more to a Sprite than that, e.g. display children.
I don’t think this is possible - just found what I thought was the solution (http://www.peterjoel.com/blog/?archive=2006_02_01_archive.xml) but it won’t work for DisplayObject.
What about this;
[QUOTE=dail;2332729]What about this;
FYI, that Flash 9 bug has been fixed in … well, some version of Flash 9 so a version check really should be added to only apply that in versions it’s been broken.
Thanks for the link!