[flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-18 Thread sunild999999
Doh! Jeffry is right, it's a Canvas which positions child components by x,y coordinates. So use a VBox or HBox or something :) --- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: I think that x and y values are defaulted to 0, 0; which would put your text in the top left of

[flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread sunild999999
Um, I think you just need to think about this a little differently. It's a percent value, so by definition it can only be 0-100. If you want a child component to be half the width of it's parent container, then you set the child component's width to be 50%... just like you would do in HTML.

Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread Nathaniel Skiba
Percent width and height are based on the percent of their parent container's size. Thus, with your example, you'd want: var graphLayout:Canvas = new Canvas(); graphLayout.percentWidth=50; graphLayout.percentHeight=50; testlayout.addChild(graphLayout); You

Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread - -
components are also resized...   How can I replicate this in actionscript?   Thank you.   -David From: sunild99 sunilbd...@gmail.com To: flexcoders@yahoogroups.com Sent: Tuesday, February 17, 2009 3:55:39 AM Subject: [flexcoders] Re: DYNAMIC actionscript child

[flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread sunild999999
I think you want something like this: var parentCanvas:Canvas = new Canvas(); parentCanvas.percentWidth =100; parentCanvas.percentHeight = 100; var childCanvas:Canvas = new Canvas(); childCanvas.percentWidth = 100; childCanvas.percentHeight = 100; var childText:Text = new Text();

Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread - -
...@gmail.com To: flexcoders@yahoogroups.com Sent: Tuesday, February 17, 2009 1:37:28 PM Subject: [flexcoders] Re: DYNAMIC actionscript child layout. I think you want something like this: var parentCanvas: Canvas = new Canvas(); parentCanvas. percentWidth =100; parentCanvas. percentHeight = 100

Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-17 Thread Jeffry Houser
component. Thanks. *From:* sunild99 sunilbd...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, February 17, 2009 1:37:28 PM *Subject:* [flexcoders] Re: DYNAMIC actionscript child layout. I think you want

Re: [flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-16 Thread - -
@yahoogroups.com 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

[flexcoders] Re: DYNAMIC actionscript child layout.

2009-02-15 Thread sunild999999
In Actionscript, you can use the percentWidth and percentHeight properties to specify width and height of your components. --- In flexcoders@yahoogroups.com, sailorsea21 sailorse...@... wrote: Hi everyone, when I create my layout with mxml components, my layout is dynamic. If I resize my