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

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

Reply via email to