No, you don't have to calculate it yourself. There have been a half-dozen replies that you simply set

 

    spacer.percentWidth = 100;

 

- Gordon

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of e_baggg
Sent: Monday, August 28, 2006 12:35 PM
To: [email protected]
Subject: [flexcoders] Re: specifying a percentage width in script?

 

You have to calculate that yourself. Add an event listener for
"resize" and which calls a function that calculates and resets the width.

private function resizeHandler () : void {
//if parent is an HBox that is set to 100%
spacer.width = parent.width;
}

--- In [EMAIL PROTECTED]ups.com, "Doug Arthur" <dougarthur@...> wrote:
>
> How can I specify spacer.width = "100%"??? It throws an error
because 100%
> is not an int.
>
> 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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to