Jump to content
Search Community

Separate the TransformItem of "_tdisplayobject"

djmon84 test
Moderator Tag

Recommended Posts

First of all, sorry for my English!

 

I've just purchased the Transforming class for implementing it in my project, and its incredible! ...but i have a problem.

 

It would be great if in future versions could be separated the _targetDisplayObject and the container where is gonna be placed. I'll try to explain:

 

The TransformItem always is placed in the parent of the _targetDisplayObject, to be together, but in many cases (masking,layers management), it is necessary to be separated both elements, and not having the same "parent" element.

 

In the actual code, it is not possible to separate this, and the result is this (an example where targetDisplayObject it's masked, or also there is an intermediate layer between targetDisplayObject and targetParentContainer):

example1.jpg

 

what I propose:

var targetDisplayObject:DisplayObject;
var targetParentContainer:DisplayObject;
var _manager:ManagerTransform = new ManagerTransform();
_manager.addItem(targetDisplayObject, targetParentContainer, "scaleNormal", false);

and this is would be the result:

example2.jpg

 

What do you think?

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...