Hi Matt,

Try casting it to the XML data to a Number. Because XML data is a String.
Like so:
var rectangle:Rectangle = new Rectangle (0,0,Number([EMAIL PROTECTED]),Number([EMAIL PROTECTED]));

Hope This helps.

Sid

On May 28, 2008, at 4:43 PM, 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.
_______________________________________________
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