Have anyone found any solution for cloning the “Instance name”?
Here is what i mean.
- Draw a random shape using flash not the actionscript
- Convert it to “Symbol”
- Assign the instance name to “cloneMe”
now try to clone it
The code should be something like this.
var newClone:MovieClip = cloneMe.copy()
newClone.x=100
newClone.y=50
addChild(newClone);
I gave an answer in your previous question here:
Actionscripts 3 Clone MovieClip
If you need to end with a MovieClip , you only need to add the resulting Bitmap to a MovieClip instance.
If you want to call a method , just create a Class with a static method.
This can only be used to copy graphic data.
Then in Flash, provided that you’ve added the Utils class to your Library path. You can do this: