I have a text file "text.txt" in same folder as the swf.
in this text file i like to Write message like
"Today open until midnigt" and if no message is wanted I simply wright the text "X"
To display the text I use a dynamic text, multiline with the Var: text1
the code in layer 1.1 is
stop();
text2="X";
loadVariablesNum("text.txt", 0);
if (text1==text2) {
gotoAndStop(2);
}
in 1.2 (empty) and code
stop();
but it wont work!?
Attached Files text.zip (48.5 KB)
Testing if txt is valid to display?
Monday, June 4, 2012
[Action Script] Testing if txt is valid to display? June,2012
Posted by Bimo Hery Prabowo at 7:13 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment