Hmm, that didnt help. It seems to be recognizing it as a number, and I
can set the Width and Height of Rectangle, but when I try to set the
scaleX and scaleY is when I get the error message.
.m
On Wed, May 28, 2008 at 10:56 AM, Sidney de Koning
<[EMAIL PROTECTED]> wrote:
> 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
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders