|
|
 |
|
|
|
|
|
SWiSH MAX is capable of loading text directly from external text files.
The method behind doing this is the variable name used in both client applciation (SWiSH MAX movie) and the text file 'example.txt'.
It is a quick tutorial demonstrating procedure via steps only. Follow the steps :
- Create new SWiSH MAX movie
- Create a Dynamic TextBox in it
NOTE : if you do not know how to create Dynamic textbox CLICK HERE
- Name Dynamic TextBox object as 'mydtobject' and set its variable
name as 'mytext'
- Add the following script on first frame of the main timeline
onframe(1) { this.loadVariables("mytextfile.txt"); }
or
onload() { this.loadVariables("mytextfile.txt"); }
- Create a new text file in notepad and save it with name 'mytextfile.txt' and
write in text as &mytext=This is my text loaded from external file&
| QUOTE | Note : You may load data for multiple text objects from a single text file, by adding '&' sign before each variable name
e.g. &mytext=My first text object value is 1 &mytext2=this is data of object 2
|
|
|
|
|