Share Posted August 22, 2008 Is there a single event that I can assign to the a clear button to puge everything on a page? (as opposed to deleting one item at a time or grouping and deleting) Link to comment Share on other sites More sharing options...
Share Posted August 22, 2008 What do you mean "purge"? You can removeAllItems() from a TransformManager instance, but that does NOT remove the DislayObjects from the stage - it just releases them from TransformManager's control. If you want to delete them all and remove them from TransformManager's control, you could do something like: myManager.selectItems(myManager.items); myManager.deleteSelection(); myManager.removeAllItems(); Note: You'll need at least version 1.2 of TransformManager to get access to the deleteSelection() function (released today) 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