hello all

how to draw rounded Rectangle like this





my code is :


PHP Code:
onFrame (1) {
   function 
createRectangle(w:Numberh:NumberbgColor:Number,stroke:Number,x:Numbery:Number,):MovieClip {
this.createEmptyMovieClip("mc",this.getNextHighestDepth());
mc.lineStyle(5stroke100true"round""round""round"8);
mc.beginFill(bgColor);
mc.lineTo(w0);
mc.lineTo(wh);
mc.lineTo(0h);
mc.lineTo(00);
mc._x x;
mc._y y;
return 
mc;
}
 
createRectangle(2001000x7ABAFF,0xFF0000,200,200);



swishmax file : https://app.box.com/s/2tang7dsl13hid9emosffig7hfub46lg

thanks for help