I am having a hell of a time getting a MovieClip to detect whether another MovieClip is being dragged over it in ActionScript 3.0? Does anyone know of a good implementation.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can also use
DisplayObject.hitTestObject()If you do this on a loop while you are dragging (using an
Event.ENTER_FRAME,Event.MOUSE_MOVEor aTimerevent) you should be able to get the result you are after.