Spongebob
November 18th, 2002, 02:10 PM
Hi there,
I'm using the LoadVars object to read data from a textfile. Everything works fine when I play my movie locally or on another computer in the network, but when I play it on the server, it does not load any data at all :(
I've already read about this (http://www.kirupaforum.com/showthread.php?s=&threadid=8661), but still couldn't make my movie work on the server... :-\
This is the code I'm using...
// --------------------------------------------
stop();
var _lvit = new LoadVars();
_lvit.onLoad = onDataLoaded_Language;
// --------------------------------------------
function onDataLoaded_Language(){
gotoAndPlay(_currentframe + 1);
}
// --------------------------------------------
// Loading language text file...
load_url = "data/ladata.txt";
_lvit.load(load_url);
// --------------------------------------------
In a later frame I use the textfile's variables loaded in the _lvit object. They should be loaded cause I've used a function to check this, am I right ?
I.E.:
_root.BTN_Map.Txt_Map.text = _root._lvit.t_pmap;
But no text is seen on the button unless I hardcode it... And, no trace(variable) is executed either...
Do you have any suggestions for my movie to play correctly on the server ?
Thanks in advance,
Spongebob.
I'm using the LoadVars object to read data from a textfile. Everything works fine when I play my movie locally or on another computer in the network, but when I play it on the server, it does not load any data at all :(
I've already read about this (http://www.kirupaforum.com/showthread.php?s=&threadid=8661), but still couldn't make my movie work on the server... :-\
This is the code I'm using...
// --------------------------------------------
stop();
var _lvit = new LoadVars();
_lvit.onLoad = onDataLoaded_Language;
// --------------------------------------------
function onDataLoaded_Language(){
gotoAndPlay(_currentframe + 1);
}
// --------------------------------------------
// Loading language text file...
load_url = "data/ladata.txt";
_lvit.load(load_url);
// --------------------------------------------
In a later frame I use the textfile's variables loaded in the _lvit object. They should be loaded cause I've used a function to check this, am I right ?
I.E.:
_root.BTN_Map.Txt_Map.text = _root._lvit.t_pmap;
But no text is seen on the button unless I hardcode it... And, no trace(variable) is executed either...
Do you have any suggestions for my movie to play correctly on the server ?
Thanks in advance,
Spongebob.