I think there is method on the Box container called pixelsToPercent.
Other than that just do the math yourself.

Button.width/parent.width  that should give you a percentage.

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stanislav Zayarsky
Sent: Thursday, February 23, 2006 7:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to get to know that control has N% width
property?

Hello Flex Coders,

I have next question:

For example we have declared in mxml Button with width property set to
N%.

So I'm wondering how I can find at runtime that this Button is N% width?

Best regards
Stanislav


--
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



 




--
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