Packagecom.textransition
Classpublic class TexTransitionModes

TexTransitionModes defines constants that are used to specify how to 'split up' a textfield for animation. When you create a TexTransition the original textfield is converted into nested movie clips, from the entire block of text, down to lines, letters and words. Each step you animate can select a different set of pieces. Note that if a previous step has acted on a different mode than the one being used, the new step's pieces will be affected by the changes made to the previous mode's pieces.


Example
To use TexTransitionModes, pass any one of the static constants in to either the default params object or to an individual step object.
 
 import com.textransition.*;
 
 var transition:TexTransition = new TexTransition(myTextField, {mode:TexTransitionModes.WORD}, {x:"100"});
 

See also

TexTransition.TexTransition()


Public Constants
 ConstantDefined by
  BLOCK : int = 1
[static] Animate the entire text block.
TexTransitionModes
  LETTER : int = 5
[static] Animate each of the letters in the textfield.
TexTransitionModes
  LINE : int = 3
[static] Animate each of the lines in the textfield.
TexTransitionModes
  PARAGRAPH : int = 2
[static] Animate each of the paragraphs in the textfield.
TexTransitionModes
  RANDOM : int = 6
[static] The random mode will select lines, words and letters randomly.
TexTransitionModes
  WORD : int = 4
[static] Animate each of the words in the textfield.
TexTransitionModes
Constant detail
BLOCKconstant
public static const BLOCK:int = 1

Animate the entire text block.

LETTERconstant 
public static const LETTER:int = 5

Animate each of the letters in the textfield.

LINEconstant 
public static const LINE:int = 3

Animate each of the lines in the textfield.

PARAGRAPHconstant 
public static const PARAGRAPH:int = 2

Animate each of the paragraphs in the textfield.

RANDOMconstant 
public static const RANDOM:int = 6

The random mode will select lines, words and letters randomly. If you want to use the exact same pieces selected by a random mode used in a previous step, you can also pass in a string with a number that references the other step. For example if you used a random mode in step 1, and then in step 3 you want to use exactly the same pieces to animate, use mode:"1". Otherwise step 3 will generate a different set of random pieces. If you want to select a mode from a previous multimode step, you need to pass a string with the step number AND a zero based reference to the mode you want to use, comma-seperated. For instance if you had a multimode step in step 1, using a random mode, a line mode and a block mode, then in step 3 you wanted to reuse the random mode, you would pass mode:"1,0". If you wanted to reuse the line mode, you would pass mode:"1,1". If you want to use the first mode of a multimode step, you can just pass as string containing the step number, the first mode is selected by default.

WORDconstant 
public static const WORD:int = 4

Animate each of the words in the textfield.