PDA

View Full Version : AS3 event propagation thru alpha channel mask?



danatkiva
May 22nd, 2007, 11:30 AM
Ok, in AS2 I had a bitmap with an alpha-channel that made a transparent hole (mask) in front of external, loaded .swf files (aka rounded corners of an old tv). In AS2, events went thru the hole just fine and the swfs behind handled their events. After converting to AS3, and getting the swfs loaded again, the events do NOT reach the swfs playing behind the 'mask'. Am I missing something or is this a major bug? Moving the external swfs to a higher level works, not the end of the world (I lose my rounded corners) but it proves the events don't get to the layer that worked in AS2.

smizzle
May 22nd, 2007, 11:36 AM
set the property mouseEnabled to false, or mouseChildren to false, depending on how you have you movie set up.

danatkiva
May 22nd, 2007, 03:25 PM
default is true, so that should be ok; swfs are in the same location ('sandbox') so it's not a security issue

senocular
May 22nd, 2007, 03:45 PM
you want it to be false, otherwise you're not going to be able to get through your hole

danatkiva
May 22nd, 2007, 06:24 PM
you want it to be false, otherwise you're not going to be able to get through your hole

Thanks! Now I get it; set it to false on the mask! Makes perfect sense now that I get it!

dthought
May 23rd, 2007, 05:18 AM
I would hope that things make sense once you understand them ;)

It's like visualising a four dimensional object. Hehe.