Jump to content
Search Community

What's the name of event when selection boundary box's released.

Richard Ryu
Moderator Tag

Recommended Posts

Richard Ryu
Posted

I'd like to know the name of event when I deselect transformItem.

I mean that I've finished resize or rotations jobs, I want to get event listener name.

 

Oh one more thing,

Can I customize the icon on my select boundary box?

I want to add "delete" icon in there.

 

Thank you.

Richard Ryu
Posted

Do you mean event.target.name? 

 

For the "delete" icon, there is no built-in icon like that, no. You might want to look at the addSelectionBoxElement() method to do something custom, though. http://greensock.com/asdocs/transform/com/greensock/transform/TransformManager.html#addSelectionBoxElement()

 

Have you looked at the docs? I think those might really help you. 

 

No I'm not meaning of "event.target.name"

 

if I click another item or background so that leave(release) my selection boundary cursor from manager.selectItem action,

Then How can I catch the event?

 

When I finish moving job, I can call event listener "FINISH_INTERATIVE_MOVE".

However I finish nothing after selecting item, I cannot get event listener.

 

So I mean I want to know the name event like "FINISH_INTERACTIVE_MOVE, SELECTION_CHANGE"

Posted

Are you saying you want to know when things are deselected? You could do something like this:

manager.addEventListener(TransformEvent.CHANGE_SELECTION, onChangeSelection);
function onChangeSelection(event:TransformEvent):void {
    if (manager.selectedItems.length === 0) {
        //deselected all!
    }
}

Does that help?

  • Like 1
Richard Ryu
Posted

Are you saying you want to know when things are deselected? You could do something like this:

manager.addEventListener(TransformEvent.CHANGE_SELECTION, onChangeSelection);
function onChangeSelection(event:TransformEvent):void {
    if (manager.selectedItems.length === 0) {
        //deselected all!
    }
}

Does that help?

 

Thank you very much :)

Finally I know how it works properly :)

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...