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()

