Class com.sekati.effects.TextEffects

Description

Static class wrapping various text animation effects

Method Index

atype(), counter(), iotype(), itype(), otype(), pushtype(), uatype()

Method Detail

counter

static public function counter(tf:TextField, n:Number, steps:Number, cb:Function):Void

Count up any positive numeric value in a text field

Parameters

tf(TextField)
n(Number)
steps(Number)
cb(Function)

Return

Void

atype

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

Easing alpha type in text animation

Parameters

tf(TextField) target text
str(String) string to animate in
cb(Function) callback

Return

Void

uatype

static public function uatype(tf:TextField, cb:Function):Void

easing alpha type out text animation

Parameters

tf(TextField) target text
cb(Function) callback

Return

Void

pushtype

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

text animation pushes text into view

Parameters

tf(TextField) target text
str(String) string to animate in
ms(Number) miliseconds
htm(Boolean) support htmlText
cb(Function) callback

Return

Void

itype

static public function itype(tf:TextField, str:String, cursor:String, isFocus:Boolean, alphaStep:Number, pi:Number, ms:Number, cb:Function):Void

text animation "types" text into field

Parameters

tf(TextField) target text
str(String) string to animate in
cursor(String) cursor character
isFocus(Boolean) switch textfield to input type and add caret to end of string
alphaStep(Number) alpha fade increment
pi(Number) pause intervals
ms(Number) miliseconds
cb(Function) callback

Return

Void

otype

static public function otype(tf:TextField, cursor:String, isFocus:Boolean, ms:Number, cb:Function):Void

text animation "types" text out of field

Parameters

tf(TextField) target text
cursor(String) cursor character
isFocus(Boolean) switch textfield to input type and add caret to end of string
ms(Number) miliseconds
cb(Function) callback

Return

Void

iotype

static public function iotype(tf:TextField, str:String, cursor:String, isFocus:Boolean, alphaStep:Number, pauseIndex:Number, ms:Number, cb:Function):Void

text animation type text in, pauses and types text out of field

Parameters

tf(TextField) target text
str(String) string to animate in
cursor(String) cursor character
isFocus(Boolean) switch textfield to input type and add caret to end of string
alphaStep(Number) alpha fade increment
ms(Number) miliseconds
cb(Function) callback

Return

Void