I have a problem with the _width and _height property. I have a menu that contain a mask (to hide the 3D effect). My problem is that the _width and _height property give me the size of the Mask and not the actual visible size. Is there a way to specify a layer or something on which I want the _witdh and _height property to have those of the visible part only?
I want to use this to hide my sub menu like that
if (((_parent._ymouse < 0) or (_parent._ymouse > _parent._height))
or ((_parent._xmouse < 0) or (_parent._xmouse > _parent._width))){
HideSubMenu();
}
yeah, you're right, it's the size of the mask that is the visible part. But the _width and _height property give me the size of the layer that is mask. I want the _width and _height of the visible part.
I send you a very simple example that give me the width of a big rectangle but I want the width of the small rectangle. Could you tell me what I have to do to get the width of the visible part?
Thanks for your help xaero182.
But I still have a problem, I modyfied the .fla to show you what my problem is.
I add text on the rectangle but it's not visible when I tested the animation.
Do you know how to make the text appear?
I don't understand why if I change the color it's change but the text doesn't appear.
u used dynamic text
if you want to mask or add spacial effects (fade,...) to this type of tekst, just click on 'character...' (properties bar in MX) and set 'Embed Font Outlines
For' 'All Characters'