Using the percentWidth and percentHeight, how can I use values other than 0-100 
?
Can I use the width of a component divided by two???
"testlayout.width/2"
How can I accomplish this?

Thanks.

-David




________________________________
From: sunild999999 <[email protected]>
To: [email protected]
Sent: Monday, February 16, 2009 1:46:46 AM
Subject: [flexcoders] Re: DYNAMIC actionscript child layout.


In Actionscript, you can use the percentWidth and percentHeight 
properties to specify width and height of your components.

--- In flexcod...@yahoogro ups.com, "sailorsea21" <sailorsea21@ ...> 
wrote:
>
> Hi everyone, when I create my layout with mxml components, my 
layout is 
> dynamic. If I resize my browser window, my components are also 
resized.
> How can I achieve this in actionscript using addChild???
> 
> var Layout:Canvas = new Canvas();
> graphLayout. width=testlayout .width/2;
> graphLayout. height=testlayou t.width/2;
> layout_graphs. addChild( graphLayout) ; 
> 
> testlayout is my vbox that will be parent to the canvas.
> 
> Thanks.
>





      

Reply via email to