hello all
how to draw rounded Rectangle like this
my code is :
PHP Code:
onFrame (1) {
function createRectangle(w:Number, h:Number, bgColor:Number,stroke:Number,x:Number, y:Number,):MovieClip {
this.createEmptyMovieClip("mc",this.getNextHighestDepth());
mc.lineStyle(5, stroke, 100, true, "round", "round", "round", 8);
mc.beginFill(bgColor);
mc.lineTo(w, 0);
mc.lineTo(w, h);
mc.lineTo(0, h);
mc.lineTo(0, 0);
mc._x = x;
mc._y = y;
return mc;
}
createRectangle(200, 100, 0x7ABAFF,0xFF0000,200,200);
}
swishmax file : https://app.box.com/s/2tang7dsl13hid9emosffig7hfub46lg
thanks for help