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?



Reply via email to