ok, so i want to load a txt file from a path that i choose (local on the pc or a network path ).
for example :
on (release) {
loadText = new loadVars();
loadText.load(“c:\documents and settings\mc\vil.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.Info;
}
};
}
or
on (release) {
loadText = new loadVars();
loadText.load("\fileserver name\folder\vil.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.Info;
}
};
}
can this be done ? :thumb: