After a long time coding in AS3, you’d think I would have known this by now. But no, I’m too lazy to look it up.
I’m coding a new Flash activity (it’s so dinky that I shouldn’t really call it that) where I’ve got a movieclip that I would like users to click. I usually have dynamic text sitting on top of clickable items, but the text field always obscures the movieclip underneath so that the hand cursor does not appear even if I have buttonMode set to true. I’ve never bothered to work this out since this is usually not a big problem. Not good for the user of course.
So I finally looked it up and found a couple of useful discussions around this (http://blog.ickydime.com/2008/04/mouseenabled-vs-mousechildren.html and http://www.actionscript.org/forums/archive/index.php3/t-140973.html).
Turns out the solution is dead simple. Just set the movieclip’s mouseChildren property to false. Damn, I feel stupid now.
