[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 wrote: > > > I think that x and y values are defaulted to 0, 0; which would put > your text in the top left of the

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

2009-02-17 Thread Jeffry Houser
is my mxml component. Thanks. *From:* sunild99 *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

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

2009-02-17 Thread - -
99 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; var c

[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(); childText.perce

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

2009-02-17 Thread - -
9 To: flexcoders@yahoogroups.com Sent: Tuesday, February 17, 2009 3:55:39 AM Subject: [flexcoders] Re: DYNAMIC actionscript child layout. 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 co

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 c

[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. If

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

2009-02-16 Thread - -
s.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" wr

[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" wrote: > > Hi everyone, when I create my layout with mxml components, my layout is > dynamic. If I resize my browser win