Hi folks,
i have a weird issue here, imagine the following setup.
1- 2 layers a & b
2 - a masks b
3- both layers contain one rectangle, visually these overlap
4- so in effect the rectangle mask masks the other rectangle, showing you
only a portion of this rectangle
Now i do:
var mc = this.createEmptyMovieClip ("test", 1);
mc.onPress = function () {trace ("booh");}
mc.hitArea = clip2;
So i set the hitArea of an empty movieclip to the masked clip.
However the booh traces even when i click on the clip2 part that lies
outside the mask (and is thus invisible).
What i want is that the onPress only works on the masked part of course.
If I do:
clip2.setMask (clip1) (in other words, mask the hitArea through code) it
works just fine.
It goes a bit too indepth to explain why i need it, but does anyone know
how i can get the timeline variant to work correctly:
get flash to correctly respect a masked hitArea.
I guess it has something to do with the hitArea not really having a mask
itself on the timeline since the mask is prob only applied at rendering
time, but lets try anyway ;)
greetz
Hans
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders