There's a simple fix...
 
width = this.width * .9
 
Shan

  _____  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Maher
Sent: Thursday, December 28, 2006 11:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Percentage based width in ActionScript



Yikes, I am creating a component in ActionScript and adding an HBOX to
it as a child. I want that hbox to fill 90% of the width of "this". 

I see on this page
http://livedocs.
<http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Parts&file=00000518.html>
macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv
eDocs_Parts&file=00000518.html

a comment about "percentHeight, percentWidth In MXML tags only..."

Come on, really? This seems a very troubling shortcoming. I just know
one of you gurus has figured out a simple fix for this, right?



 

Reply via email to