Hi Susan,
when scripting a masc, you need to define it as a masc:
roundRect.mask = rect;
addChild(rect);
Beatrix
Susan Day schrieb:
Hi;
I have the following code:
function roundNavRect()
{
var roundRect:Sprite = new Sprite();
roundRect.graphics.beginFill(0x33030b);
roundRect.graphics.drawRoundRect(20,
20,
300,
660,
20,
20);
roundRect.graphics.endFill();
addChild(roundRect);
var rect:Sprite = new Sprite();
rect.graphics.beginFill(0x70081a);
rect.graphics.drawRect(20,
20,
300,
660);
rect.graphics.endFill();
roundRect.addChild(rect);
TweenLite.to(rect, 1, {y:-760});
}
I'd like "rect" to be nested within :roundNavRect" such that the latter acts
as a mask. Unfortunately, it's not doing that. How do I do that?
TIA,
Susan
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders