I have a movie clip on which I added a mouse event. MOUSE_OUT listener
movie clip.AdventListner (remove mouseover.MEEE_UUT, MVILP);
It is now argued that to remove the movie clip on MOUSE_OUT
and to add it back to the stage on the second button's MouseOver
. Intentional functionality is like a slider showing some information
In this case shootout
What could be the problem? .
Update: I forgot to let me know that I do test to use hittestpoint if the mouse MovieClip . In most cases if I slowly move the mouse, then hitTestPoint
does not give the right result (false) that the movie is out of the clip and therefore I can not remove the object.
Update 2: Repeat the question again. I think I have messed up the explanation.
Mouse events work properly.
movieclip.addEventListener (Mouse Event.MOEEIIT
The fire looks ok and I'm in the method that handles this incident. Now when I make sure If I'm out of this movie clip, then the problem occurs.
Remove the personal function obz (eve: Event): Zero {var e: Mouse Event = MouseAvent ( Eve); if (m_vishlist image) {var inside slot: boolean = e. CurrentTarget.hitTestPoint (e.sta GeX, e.stageY); If (! InsideSlot) { The mouse is gradually removed from the object and the InsideSlot
is correct and therefore the code flow if
does not go inside the position and as a result I am unable to remove the object.
While tracing e.stageX
I find that it often shows coordinates , Which is not really that when the mouse moves out (shows a point inside the slot). This behavior is more often When I slowly go out.
What could be the reason for this?
Check that your mouse position is coordinates in step (your child's movie Clip no coordinates).
In other words, make sure that you are using stage.mouseX, stage.mouseY
, as opposed to using local member variables inside the movie clip (which Mouse position relative to film clip.)
hitTestPoint should be given as phase coordinates.
Comments
Post a Comment