Hi,
i reread my own post and its a bit fuzzy i think, what it comes down to is this:

masking the hitArea for a dynamically clip only seems possible by masking through code as well
masking the hitArea for a clip on stage can be done on stage as well

has anyone experienced this before?
What i want is:
- create dynamic clip
- set the hitArea for this clip to a clip on stage masked by the layer above it

greetz
Hans

At 04:26 PM 11/22/2005, Hans Wichman wrote:
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

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to