Jump to content


Changing selection depths [SOLVED]

Recommended Posts

I see there are two methods:



Moves the selection down one level.



Moves the selection up one level.


Are there any examples on how to apply these methods to a selection? I'd like to make "move forward" and "move backward" buttons, but not sure how.


I have created a button with a function:

protected function button1_clickHandler(event:MouseEvent):void


but nothing happens.

Link to comment
Share on other sites

I bet it's just because when you click on your button, it deselects any objects that were selected, right? You can add your button to the ignoredObjects or turn off autoDeselect.

Link to comment
Share on other sites

Yes, that was it. I had no idea. Thanks!



myManager.ignoredObjects = [downBtn,upBtn];

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.