Geez, that's tough. setSize only takes numbers....
Best I can think of, have "something" on your form that is 100% x 100%, say
your Application itself, or perhapse a wrapper (like the VBox it's in lets
say), and then when your ready, have your custom sizing routine kick in:
function ready():Void
{
Stage.addListener(this);
}
function onResize():Void
{
var width:Number = container.width;
var height:Number = container.height;
yourPanel.setSize(width, height);
}
ready();
onResize();
----- Original Message -----
From: "Andrew Spaulding" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, March 20, 2005 8:45 PM
Subject: [flexcoders] programatically set percentage height and width
Hi all,
is it possible to programatically set a panel's height and width
properties to 100%?
I am resizing a panel upon login to fit the screen, but then i want to
set the height and width to 100% so that the user can resize the
window and have the app resize with it.
any ideas?
Andrew
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/