Jump to content
Search Community

:: Adding a Custom DELETE Handle Button

arturino
Moderator Tag

Recommended Posts

Posted

hi, 

 

i would like to add this custom DELETE handle to the Transform tool:

 

Image%202013.02.07%203:04:31%20PM.png

alt screenshot: http://cl.ly/image/1t0m2w0S071g

 

please let me know exactly where and how i can do this.

 

thanks so much.

 

-arturino

Posted

You could use the addSelectionBoxElement() method to attach your custom button. See http://greensock.com/as/docs/transform/com/greensock/transform/TransformManager.html#addSelectionBoxElement() for details. And then add your own MouseEvent.CLICK listener (or whatever) and in your handler, you can call the deleteSelection() method or delete individual TransformItems with deleteObject(): http://greensock.com/as/docs/transform/com/greensock/transform/TransformItem.html#deleteObject()

  • Like 1

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.
×
×
  • Create New...