Jump to content

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Drag to garbage to delete item?

Recommended Posts

Hello and sorry as this is the kind of question where you are asking somebody to do your coding for you... (sheepish look...)


I've got a delete all thing working fine - although since I move my mc's once they are dragged onto the stage, I found it easier to just get the numChildren of that mc and remove them that way.


But for my "delete just this 1 thing" setup - what I'd really love is to add a little garbage can that the child can drag the items into - that way I can add a fun little sound or something, and kids are pretty familiar with this type of setup for deletion. I see I'll have to use a hitTest or collision detection - but if anybody has done this and has an exact piece of code that works with the TransformManager - I'd be really thankful!!

  • Like 1
Link to post
Share on other sites

You could just listen for TransformEvent.FINISH_INTERACTIVE_MOVE events and do a hitTest() or hitTestPoint() there.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.