Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : loadvariables : loadvars



S1n0Byt3}:
5/18/2004 9:38:46 PM
Jack.
5/18/2004 9:54:19 PM
before you trash it, save a text file, hello.txt, with
var1=Hello %3e%3e%3eS1n0Byt3%7d%3a%3e&

in Flash have a dynamic textfield, instance name - myText
and a frame action -

myData = new LoadVars();
myData.load("hello.txt");
myData.onLoad = function() {
myText.text = myData.var1;
};

does this simple example help ?
S1n0Byt3}:
5/18/2004 10:07:12 PM
NOpe! I still get = undefined!
Cata M
9/23/2004 4:04:16 PM
sorry for this late reply. flash has some bugs but in the end it will work.
use this allong whit the same hello.txt file:

on (release)
{
var myData = new LoadVars();
myData.load("hello.txt","get");
myData.onLoad = function()
{
myText = myData.var1;
};
}

see attached example if you are still interested!
AddThis Social Bookmark Button