[flexcoders] VBox question

2009-02-25 Thread elevight
In MXML, you set a VBox's width to 100% by:

mx:VBox width=100%/

But if you instantiated a VBox in actionscript as in:

var vbox:VBox = new VBox():

How do you set its width to 100%?

Thanks.



Re: [flexcoders] VBox question

2009-02-25 Thread Ashish Verma
Using percentWidth and percentHeight proerties you cam set in ActionScript.



On Thu, Feb 26, 2009 at 12:20 PM, elevight i...@pilby.us wrote:

   In MXML, you set a VBox's width to 100% by:

 mx:VBox width=100%/

 But if you instantiated a VBox in actionscript as in:

 var vbox:VBox = new VBox():

 How do you set its width to 100%?

 Thanks.