Hey all, in accordance with my new article writing regime, heres an article about a problem i came into contact with today.
I was working on a project for a client, i needed to have a watermark placed over an interactive area which used mouse events. Only the problem is that the watermark is a Movieclip (so i could use blend modes) which interferes with the underlying Movieclip’s mouse events.
So i fired up the livedocs and came across this handy inherited property for the MovieClip class “mouseEnabled”.
simply use the code below in you actions layer or class file and boom, the movieclip will no longer listen for mouse events nor stop Movieclips from behind it receiving them.
YourMovieClip.mouseEnabled = true;
Obviously where “YourMovieClip” place the instance name of your movieclip.
Stay cool
-Bill







ilike2flash on 20 July, 2009
Thanks, this post is very useful.
Ricardo Canelas on 15 June, 2010
or…
YourMovieClip.mouseEnabled = false;
YourMovieClip.mouseChildren = false;