Jump to content
Search Community

Creating a duplicate FlexTransformManager

jivory test
Moderator Tag

Recommended Posts

Hey everyone,

I am wanting to create a duplicate of the FlexTransformManager that I already have. Have it include all the same objects, size, rotation, etc. That way I can then work with that transformer independently without modifying the original.

 

I tried:

var transformerDuplicate:FlexTransformManager = new FlexTransformManager();
transformerDuplicate = myTransformer;
addChild(transformerDuplicate);

and all this seems to do it overwrite the original transformer.

Does anyone know how I can create a duplicate, add it to my stage and be able to work with it from there?

Thanks

Link to comment
Share on other sites

I'm not aware of any way to duplicate a FlexTransformManager and all of its items without a LOT of code, and even with that, I'm not 100% sure it's possible. You'd literally have to know every property of every item so that you could create a new instance of each one and copy the properties over, etc. See what I mean? That's not a problem specific to FlexTransformManager either - it's virtually any DisplayObjectContainer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...