Class com.sekati.display.TextDisplay

Description

TextDisplay - utilities for uniformly styling, clearing, and animating text in display clip classes.

Method Index

anim(), clear(), hide(), push(), reveal(), show(), stopEffect(), style()

Method Detail

clear

static public function clear(o:MovieClip):Void

Clear all textfields in the object

Parameters

o(MovieClip)

Return

Void

style

static public function style(o:MovieClip):Void

Apply the App.css stylesheet to all textfields in the object.

Parameters

o(MovieClip)

Return

Void

show

static public function show(tf:TextField, str:String):Void

Apply stylesheet to text and intro string.

Parameters

tf(TextField)
str(String)

Return

Void

hide

static public function hide(o:Array, isAnim:Boolean):Void

Hide a textfield (visible false, alpha 0)

Parameters

o(Array) - array of textfields or individual field
isAnim(Boolean) - animate the transition

Return

Void

See Also

  • TextDisplay.reveal()

reveal

static public function reveal(o:Array, isAnim:Boolean):Void

Reveal a textfield (visible true, alpha 100)

Parameters

o(Array) - array of textfields
isAnim(Boolean) - animate the transition

Return

Void

See Also

  • TextDisplay.hide()

anim

static public function anim(tf:TextField, str:String, cb:Function):Void

anim text - atype wrapper.

Parameters

tf(TextField)
str(String)
cb(Function)

Return

Void

push

static public function push(tf:TextField, str:String, ms:Number, cb:Function):Void

anim text - push wrapper.

Parameters

tf(TextField)
str(String)
ms(Number)
cb(Function)

Return

Void

stopEffect

static public function stopEffect(tf:TextField):Void

stop tween wrapper.

Parameters

tf(TextField)

Return

Void