use the percentWidth property...

myUIObject.percentWidth = 100;

Rick
-----Original Message-----
From: Paul BH [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 3:53 PM
To: [email protected]
Subject: [flexcoders] f2b3 setting width / height as a percentage in AS3


Hi,
in Flex 1.5 I could write in my actionscript code something like:

myUIObject.width = "100%";

and it would display just as if I had written:

<whatever id="myUIObject" width="100%"/>

is there a way to do this in AS3? The compiler isnt too happy with me
trying to set width to a string...

ta

PBH


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to