package { import flash.display.Sprite; import flash.text.TextField; import flash.display.Shape; import flash.display.Graphics; public class BareBones extends Sprite { public function BareBones() { var display_txt:TextField = new TextField(); display_txt.htmlText = "yippee tie aye"; addChild(display_txt); drawColoredRectIn(graphics, 0xFF0000); } private function drawColoredRectIn(target:Graphics, color:int):void { target.lineStyle(7, 0x000000, 0.3); target.beginFill(color); target.drawRect(80, 80, 100, 100); } } }