Jump to content
GreenSock

danno

TransformManager[AS3] - Detect Collision with other MC's

Recommended Posts

Is it possible to detect collision when a selected TransformItem is selected and moved on top of another MC on the stage.

 

Thanks!

Link to comment
Share on other sites

I'm pretty sure you could use a MOVE event handler and do a hitTest() or hitTestObject() to determine that.

Link to comment
Share on other sites

and that's actually what i did while i was waiting for a response. thanks so much :)

Link to comment
Share on other sites

ok, what i'm trying to have happen once my TransformItem hits another MC, is to delete that MC off the stage. i'm able to remove the MC, but it seems as if the selection is still stuck on my TransformManager/TransformItem. how do i tell force it to deslect?

 

thanks!!

Link to comment
Share on other sites

You can call deselectAll() on the TransformManager.

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