Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Boris

Depth-Bug when selecting TransformItems

Recommended Posts

Hi,

i have two Items in my Flex-TransformManager, one in the front and one behind the first. When now select the one in the back and i run in loop through the FlexTramsformManager the elements switched the depth without calling the moveSelectionDepthUp()- Method. When i select the item in front, it switches again.

 

Is that a bug or a feature?

 

EDIT//

offcourse forceSelectionToFront is set to false

Link to comment
Share on other sites

I'm not aware of any such bugs - can you send me an example? Also, beware that FlexTransformManager must put some objects into the container like the selection box/handles, etc.

Link to comment
Share on other sites

ok - i found a solution. When your run the following Flex-App, you will see that the for each loop doesn't swap the depth but the normal loop displays the correct depth of every child from the transformer

<?xml version="1.0" encoding="utf-8"?>















Link to comment
Share on other sites

Could you describe what surprised you about this? Since TransformManager needs to add some invisible items to the display list (like for the selection box, cursors, etc.), it is normal for there to be a few depths occupied, but visually things should work great in terms of swapping depths. I'm very sleep-deprived, so I may be missing an obvious point you're trying to explain :)

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