package { import mx.controls.Label; public class professional_flex_code_13_CircleLabel extends Label { public var circleColor:uint = 0x000000; public function professional_flex_code_13_CircleLabel(){ super(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); // Draw a circle around the label text graphics.lineStyle(1, this.circleColor, 1.0); graphics.drawEllipse(-5,-5,this.width+10,this.height+10); } } }