|
|
 |
|
|
|
|
|
How to load variables from a text file into one text field in swishmax
I assumed you guys know how to write text variables in text editor (eg: use notepad)
Now open your text editor and write your var text, which you are going to load into swish by button hit.
For example you want to load three vars. Write it like this:
&varOne=your first text here&
&varTwo=your second text here&
&varthree=your third text here&
Note: always start and end it with the sign “&”, then, save your text file eg: Dtext.txt
Back to swish
Load your text file into _root _root.loadVariables ("Dtext.txt");
Create your textfiled call it anything you like and give it a var name eg: “putlink” Make your buttons (Btn1, Btn2, and Btn3)
So to display your text just refer to the root and textfieldvar like this.
Btn
On (release) { Putlink=_root.varone; } And so on. Enjoy it!
Swi file attach
Download Example
Regards damoon
;;;;;;;;;;;peace;;;;;;;;;;;;;;;;;;
|
|
|
|