In Actionscript, you can use the percentWidth and percentHeight properties to specify width and height of your components.
--- In email@example.com, "sailorsea21" <sailorse...@...> 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=testlayout.width/2; > layout_graphs.addChild(graphLayout); > > testlayout is my vbox that will be parent to the canvas. > > Thanks. >