Jump to content
GreenSock

cactusphone

addIgnoredObject for ColorPicker pop up [SOLVED]

Moderator Tag

Recommended Posts

Hi, is there a way to reference a ColorPicker's pop up box to also have the TransformManager ignore clicks on it? Adding the the ColorPicker to ignored object works for the initial click, but not the click on the color you choose. Thanks.

Link to comment
Share on other sites

It that situation, I'd recommend setting autoDeselect to false, and then put a Sprite below your objects (it could have an alpha of zero so it's essentially invisible) and use a CLICK or MOUSE_DOWN listener on that Sprite to call a function that calls deselectAll() on your TransformManager. That way, the only time things get deselected is when you click on the "background" (that Sprite). Make sense?

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