Packagesekati.text
Classpublic class RandomTypo

RandomTypo



Public Methods
 MethodDefined by
  
RandomTypo Constructor
RandomTypo
  
setText(instance:TextField, str:String, wChar:String = "-", toUpperCase:Boolean = false, mixLower:Boolean = true, mixUpper:Boolean = false, mixUpperSpecial:Boolean = false, cSpeed:uint = 2, mFix:uint = 10, mRange:uint = 15, mTrigger:uint = 12):void
Animate the shuffled text
RandomTypo
Constructor detail
RandomTypo()constructor
public function RandomTypo()

RandomTypo Constructor


Example
   var typo : RandomTypo = new RandomTypo();
   typo.setText(tf, "Hello World: how are you doing today?");
   

Method detail
setText()method
public function setText(instance:TextField, str:String, wChar:String = "-", toUpperCase:Boolean = false, mixLower:Boolean = true, mixUpper:Boolean = false, mixUpperSpecial:Boolean = false, cSpeed:uint = 2, mFix:uint = 10, mRange:uint = 15, mTrigger:uint = 12):void

Animate the shuffled text

Parameters
instance:TextField — the textfield to animate text in
 
str:String — the string to use
 
wChar:String (default = "-") — the seperator character to use
 
toUpperCase:Boolean (default = false) — whether to uppercase all final text or not
 
mixLower:Boolean (default = true) — whether to use only lowercase chars in the shuffle (default)
 
mixUpper:Boolean (default = false) — whether to use only lowercase chars in the shuffle
 
mixUpperSpecial:Boolean (default = false) — whether to use uppercase and special chars in the shuffle (overrides other mix args)
 
cSpeed:uint (default = 2)
 
mFix:uint (default = 10)
 
mRange:uint (default = 15)
 
mTrigger:uint (default = 12)