Dynamic Text Use
1. Create a dynamic text field inside a movieClip.
2. Give this text field an instance name (for example: myText).
3. Ensure that the borders for this text field are turned off.
4.
In
the first frame of the timeline where this text field begins, autoSize must be
set to true. To do this, open the actions window, switch to expert mode and
enter the following:
myText.autoSize = true;
(where “myText” is the instance name that you gave to this text field).
|
Note: When loading dynamic text into a textField that has been set at "autoSize = true", the text should be assigned to the textField using the textField's "text" (or "htmlText") property instead or the "var" variable. The "var" field should be left blank in the textField. For example: myText.text = myDynamicText; |
5. Select all the elements of this movie clip and change the position to X=0, Y=0.
6. Return to main timeline and place the movieClip, which contains the dynamic text, on your stage.
7. Give the movieClip an instance name.
8.
Drag and drop the ultimateScroller from the components window, on top of this
movieClip.
(The ultimateScroller should automatically take the correct
instance name of the movieClip)
Note:
If you wish to use the mask feature of the ultimateScroller, the font in the dynamic field must be embedded.
The same method may be used to scroll input text, however please note that the text will not scroll as you type.