Hello,
scale9Grid not work in html5
import openfl.display.Sprite;
import openfl.geom.Rectangle;
class Main extends Sprite
{
public function new()
{
super();
var cornerRadius:Int = 50;
var size:Float = 100;
var sprite:Sprite = new Sprite();
sprite.graphics.beginFill(0x000000);
sprite.graphics.drawRoundRect(0, 0, size, size, cornerRadius);
sprite.graphics.endFill();
sprite.scale9Grid = new Rectangle( cornerRadius / 2, cornerRadius / 2, size - cornerRadius, size - cornerRadius );
this.addChild( sprite );
sprite.width = 500;
}
}
Thanks