1 package org
.sevenchan
.dongs
.ui
3 import flash
.display
.Sprite;
9 public class StackHeader
extends Sprite //implements IHovertextRecipient
11 private var textContent
:TextField = new TextField();
12 public function StackHeader
(text
:String)
14 addChild
(textContent
);
15 this.textContent
.width
= 125;
16 this.textContent
.x
= 0;
17 this.textContent
.y
= 0;
18 textContent
.text
= text
;
20 var tf
:TextFormat = new TextFormat();
23 tf
.align
= TextFormatAlign.CENTER
;
25 this.textContent
.setTextFormat
(tf
);
26 this.textContent
.height
= textContent
.textHeight
+ 4;
31 public function draw
():void {
33 graphics
.lineStyle
(1,0x000000, 0.35);
34 graphics
.moveTo
(0, this.textContent
.y
+ this.textContent
.height
);
35 graphics
.lineTo
(124,this.textContent
.y
+ this.textContent
.height
);