Jump to content


How to delete a selected item on button click

Recommended Posts

I have made multiple transform manager as I am making a multipage eDesigner.. now I want to select an object added to a selected page and want to delete it while pressing a delete button. So what are the steps to achieve the same functionality.


I know I can delete by pressing delete/backspace key but want additional functionality so that one can delete on button press.


Many thanks in advance.



Link to comment
Share on other sites

Just make sure your delete button is in the ignoredObjects array. Or you could add a rectangle behind the whole area, set its alpha to 0, turn off autoDeselect, and add a CLICK listener to that rectangle that calls the deselectAll() method.

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.