| Ultrashock Forums
• AS3 mouseEvent buggy and inaccurate (because of being nested within a scaled movie?) |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
2010-01-11
#2 |
||
|
This is because your mouseEvent is being interfered with by movieclips inside the movieclip your mouseevent is on. If nothing but the mc that has the mouseevent on it needs to be clicked, you can solve this by setting mouseChildren=false on the mc that has the event attached to it. You can also individually set mc's that are interfering to mouseEnabled=false.
|
|
|
|
2010-01-11
#3 |
||
|
Hi Tiran, Thanks for your reply, but actually, the movieclip that needs to have the mouseEvents doesn't have any children within it. It does have other siblings though, but I need to keep the mouseEvents on those siblings. I don't think it's the mouseEvents on its siblings that's causing the interference? And the mouseEvents on its siblings seem to be working fine by the way. So why is it behaving weirdly... I'm totally perplexed. Would you have any other idea why? Just for your info, and just to describe how it's behaving: simply by moving my mouse over the movieclip, e.g. making rounds over, and without mousing out of it, I'm having mouseOut, mouseOver, mouseOut, mouseOver, mouseOut, mouseOver, etc. being triggered... Please let me know if you have any other idea. Thanks! jonathan. |
|
|
2010-01-11
#4 |
||
|
Are you doing anything in the rollOver code to determine the target that was rolled on / off. for instance: ActionScript Code:
If so are you familiar with the difference between "target" and "currentTarget"? Other than that its tough without seeing code or an example. |
|
|
|
2010-01-12
#5 |
||
|
Hi Tiran, I tried identifying the target using target and currentTarget but I dont think it's the problem... Anyway, I will try to put up a stripped down version of my Flash and will let you know (cos the actual current version is so complicated). Thanks! jonathan. |
|
|
|
2010-01-31
#6 |
||
|
Hey Tiran, Just wanted to let you know that I've solved the problem. The "bugginess" in the mouse over event was actually due to an invisible movieclip which was on top my movieclip, and which was following the mouse. So when I was rolling over the invisible movieclip, it was capturing a "mouse out" event from my movieclip! haha damit... Anyway, thanks for your help! jonathan. |
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


5 comments
| 282 views


Linear Mode