Share Posted February 2, 2010 I see there are two methods: moveSelectionDepthDown():void Moves the selection down one level. moveSelectionDepthUp():void 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 { myManager.moveSelectionDepthDown(); } but nothing happens. Link to comment Share on other sites More sharing options...
Share Posted February 2, 2010 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 More sharing options...
Author Share Posted February 3, 2010 Yes, that was it. I had no idea. Thanks! myManager.ignoredObjects = [downBtn,upBtn]; Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now