RE: [flexcoders] The width change works in Flash CS3 but not in Flex
That's correct. The UIComponent width/height model is more like the standard UI models. As such, it is not directly tied to the underlying Flash transforms. If you read up on how to create custom components, you'll see that you should be doing your drawing in updateDisplayList if you need to respond to size changes. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dsds99 Sent: Tuesday, February 19, 2008 5:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] The width change works in Flash CS3 but not in Flex // ActionScript file package{ import mx.core.UIComponent; public class Tint extends UIComponent{ public function Tint():void{ graphics.beginFill(0x9fe9c9,1); graphics.drawRect(0,0,100,100); width=300; } } }
Re: [flexcoders] The width change works in Flash CS3 but not in Flex
way too early to be setting that stuff in the consturctor, u need to override the updateDisplayList and do it there - Original Message From: dsds99 <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Tuesday, February 19, 2008 7:08:37 AM Subject: [flexcoders] The width change works in Flash CS3 but not in Flex // ActionScript file package{ import mx.core.UIComponent ; public class Tint extends UIComponent{ public function Tint():void{ graphics.beginFill( 0x9fe9c9, 1); graphics.drawRect( 0,0,100,100) ; width=300; } } } Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] The width change works in Flash CS3 but not in Flex
// ActionScript file package{ import mx.core.UIComponent; public class Tint extends UIComponent{ public function Tint():void{ graphics.beginFill(0x9fe9c9,1); graphics.drawRect(0,0,100,100); width=300; } } }