arturino

:: Adding a Custom DELETE Handle Button

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.