RE: [flexcoders] f2b3 setting width / height as a percentage in AS3

2006-06-16 Thread rick
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: flexcoders@yahoogroups.com
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/
 




[flexcoders] f2b3 setting width / height as a percentage in AS3

2006-06-15 Thread Paul BH
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 ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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/
 





RE: [flexcoders] f2b3 setting width / height as a percentage in AS3

2006-06-15 Thread Gordon Smith










In ActionScript you must write



 myUIObject.percentWidth = 100;



because the 'width' property is now typed
as Number.



The MXML compiler translates the attribute




  ... width=100 ...




into



 myUIObject.width = 100;



and the attribute



  ... width=100% ...




into



 myUIObject.percentWidth = 100;



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paul BH
Sent: Thursday, June 15, 2006
12:53 PM
To: flexcoders@yahoogroups.com
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






__._,_.___





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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___