I know there are places where scale9 doesn't work. For some reason I can never remember them.
However, in this case, I would try waiting for "complete" event then waiting for "updateComplete" (you'll get an updateComplete before complete too so ignore that one). ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of walsaadie Sent: Wednesday, August 29, 2007 3:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] scale9Grid on flex image control. does it work? Trying this simple bit of code: var image:Image = new Image(); addChild(image); image.source = "images/image.png"; image.maintainAspectRatio = false; image.scale9Grid = new Rectangle(2,2,30,30); the image size is 200 x 200 pixles i also tried adding different event handlers like complete thinking the content of the image hadn't loaded yet. but it's the same error every time. ArgumentError: Error #2004: One of the parameters is invalid. at flash.display::DisplayObject/set scale9Grid(); my question is using the scale9Grid even possible on the image control?