You might have to wait for a complete event before setting scale9grid ________________________________
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of blc187 Sent: Thursday, April 19, 2007 7:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] trying to use scale 9 grid attempting to load an image, set a scale9 for it, not quite sure whats going wrong here. bgOutImg = new Image(); bgOutImg.source = bgLightOut; var grid:Rectangle = new Rectangle(20, 20, 60, 60); bgOutImg.scale9Grid = grid ; bgOutImg.maintainAspectRatio = false; bgOutImg.width = 300; this.addChild(bgOutImg); getting the following error: ArgumentError: Error #2004: One of the parameters is invalid at flash.display::DisplayObject/set scale9Grid()