Accepting MXML attribute's width in percentage in a custom component

Hi, I have a component I've created by inheriting UIObject class

In my mxml I have the following lines used for initiating my component:

<my:comp width="400"….

In my AS code I can trace the value of __width, in this case the
result will be "400".

My problem is that when I set the value as percentage:

<my:comp width="100%"….

In this case the value of __width is "undefined"

What should I do in order to get the correct value when setting the
width in percentage and not in pixels??

Thanks








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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to