• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 471
  • Last Modified:

Mouse Events Inside Mask

I'm having trouble detecting mouse events on movie clips behind a mask. I remember coming across this problem in the past, but can't remember the solution. Any ideas?

Thanks...
0
pyromunky
Asked:
pyromunky
1 Solution
 
wal_toorCommented:
Hellow,

Can you profide an example or piece of code?

I have created a moviecliip layer (with movieclip) and a mask layer. When i mask the movieclip i can use...

_root.myMovieClip_1.onPress = function(){
      trace("clipPressed");
}

_root.myMovieClip_1.onRelease = function(){
      trace("clipReleased");
}

...and this works.

Greetz,
walter
0
 
pyromunkyAuthor Commented:
I ended up using a hit test on the mask clip instead of a rollOver event. Since the mask was covering everything else below it, any rollOver detection was automatically associated with the mask.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now