org. helvector. txt. TraceField

Summary
Simple textfield that can be used to trace anything to the screen.
Constructor.
Constructs the textfield after the instance of the object has been instantiated.
Increases the font size of the instance textfiled by one.
Reduces the font size of the instance textfiled by one.
Tidies up all resources created by this class instance.

TraceField Notes

Simple textfield that can be used to trace anything to the screen.  It uses a _sans font in black, size 10, and has a white backround.  Quick dev therefore look at again to abstract further.

Variables

mc

public var mc: MovieClip

fm

public var fm: TextFormat

tf

private var tf: TextField

Functions and Properties

TraceField

public function TraceField(mc: MovieClip,
x: Number,
y: Number,
w: Number)

Constructor.

Parameters

mcMovieClip to attach the new textfield to.

makeField

private function makeField(mc: MovieClip,
x: Number,
y: Number,
w: Number):Boolean

Constructs the textfield after the instance of the object has been instantiated.

Parameters

mcMovieClip to attach the new TextField to.

Returns

Booleanto reflect the success of the method.

See Also

Nothing

increaseFontSize

public function increaseFontSize():Void

Increases the font size of the instance textfiled by one.

decreaseFontSize

public function decreaseFontSize():Void

Reduces the font size of the instance textfiled by one.

text

public function set text(t: String):Void

text

public function get text():String

kill

public function kill():Boolean

Tidies up all resources created by this class instance.  Most importantly the textField instance, this isn’t implemented yet!!!

Returns

Boolean.

public var mc: MovieClip
public var fm: TextFormat
private var tf: TextField
public function TraceField(mc: MovieClip,
x: Number,
y: Number,
w: Number)
Constructor.
private function makeField(mc: MovieClip,
x: Number,
y: Number,
w: Number):Boolean
Constructs the textfield after the instance of the object has been instantiated.
public function increaseFontSize():Void
Increases the font size of the instance textfiled by one.
public function decreaseFontSize():Void
Reduces the font size of the instance textfiled by one.
public function set text(t: String):Void
public function kill():Boolean
Tidies up all resources created by this class instance.