And to set width (or height) to a percentage value, use hBox.percentWidth (or hBox.percentHeight). -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com
-----Original Message----- From: Josh Millstein <[EMAIL PROTECTED]> Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com <flexcoders@yahoogroups.com> Subject: [flexcoders] Setting properties of UIComponents with actionscript Date: Mon, 28 Apr 2008 11:07:33 -0500 Hello, How can I set paddingTop etc. when creating an HBox in actionscript. I can't do hBox:HBox = new HBox(); hBox.paddingTop = 10; Also, how can I set a HBox width to a percentage. I can't do hBox.width = "100%"; Thanks for any help