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
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
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
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
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
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
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
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
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
9 matches
Mail list logo