-
I am trying to figure out how to detect when a movie is dragged over an object so that I can change the color of the movie/object that the dragged clip is over.
For example:
I have two draggable clips, clipA and clipB
------------
------------
---clipA----
------------
------------
------------
------------
---clipB----
------------
------------
I want to change the color of clipA when I drag clipB over it (not when I release it). Is there a way to detect the _dropTarget when I mouseOver a clip...not just on the release clip event?
Can anyone help me?
-
Well i wouldnt use _dropTarget i would use hitTest. If your dragging MCs you obviously know how to use hitTest. I would do something similar to the following
<CODE>
code for ClipA
on clipEvent(mouseDown) {
if (this.hitTest(_root.mymouse)) {
// dragging clipA
if (this.hitTest(ClipB)) {
change color
}
}
}
</CODE>
hope this helps
-
thanks...I should have though of hitTest.....doh
I am trying it right now
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|