Colocarlo en un frame. El prototipo sería el siguiente:
MovieClip.prototype.rectangulo = function(xpos, ypos, ancho, alto, grosor_borde, color_borde, alfa_borde, color_relleno, alfa_relleno) {
this._x = xpos;
this._y = ypos;
this.lineStyle(grosor_borde, color_borde, alfa_borde);
this.beginFill(color_relleno, alfa_relleno);
this.moveTo(-ancho/2, alto/2);
this.lineTo(-ancho/2, -alto/2);
this.lineTo(ancho/2, -alto/2);
this.lineTo(ancho/2, alto/2);
this.endFill();
}
Para utilizarlo cada vez que queramos solo tenemos que llamar al prototipo y darle valores. Por ejemplo:
this.rectangulo(20,20,200,20,1,0x336699,50,0xff0000,100);