In Flex, 'width' is a simple property, not a style. Styles have complicated lookup rules implemented by getStyle() -- such as looking in CSS class selectors and various type selectors -- while properties "live" only on the object itself. Gordon Smith Adobe Flex SDK Team
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Thursday, December 13, 2007 10:32 PM To: [email protected] Subject: [flexcoders] How come setStyle("width","100%") does not change container back to 100% ? Hello, This is something that has been beugging me for a long time ( ever since Flex Beta 2 Beta ). When I set a container ( lets say VBox ) to 100% width using MXML inline than all is great. <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " width="100%" height="100%" creationComplete="init()"> If you set it using the setStyle("width","100%") in ActionScript 3 however: this.setStyle("width","100%"); its as if the set style does not take effect... My VBox remains the fixed width as it was when I original created it ... :( Is this a BUG ????? Am I missing something here ? Do we need to use StyleManager to refresh or something ... Tried to google this with no luck !!! Thanks in advance, Sean.

