Matt S. wrote:
So I tried to the do the following:

var rectangle:Rectangle = new
Rectangle(0,0,[EMAIL PROTECTED],[EMAIL PROTECTED]);
if(cS.height < rectangle.height){
        rectangle.height = cS.height;
        rectangle.scaleX = rectangle.scaleY;
}

But it gives me the following error:
1119: Access of possibly undefined property scaleY through a reference
with static type flash.geom:Rectangle.

Look up the public properties of the Rectangle class and you'll see scaleX and scaleY don't exist. Draw the rectangle in a Sprite and scale the Sprite instead.

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

Reply via email to