Hi,
I’m trying to load the content of a .txt file dynamically… If I leave the .txt file in the same root with the .swf it works perfectly, but I tried moving the .txt files into another folder and it stopped working… I’m not sure what I’m doing wrong, can someone help me out with this one ?
This is my code:
var path ="/info/myInfo.txt";
var my_lv = new LoadVars();
my_lv.onLoad = function(success) {
if (success) {
// actions go here...
} else {
trace("error load text files");
}
};
my_lv.load(path);
“info” is the name of the folder the .txt file is in… I even tried upload it to my server and giving the absolute address like http://www.mydomain.com/info/myinfo.txt but nothing…
I have no idea how to solve this…