I used a sample in loading text file from the flash samples.
I wanted to load a .C file (turbo c file), which is editable and readable as text. While i have successfully done it, it only shows the loaded text in the .fla but not in .swf
I am using flash 8 AS2
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src == undefined) {
trace(“Error loading content.”);
return;
}
my_txt.text = src;
};
my_lv.load(“c://flash/ACT2.C”, my_lv, “GET”);
Your help is very much appreciated