Actionscript + txt

Arquivo: mytext.txt

Loading External Text

This text is loaded from an external text file using the URLLoader Class when the SWF is accessed. You can view the text file by clicking on the link below.

Arquivo: teste.fla
Actionscript - F9
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
myTextLoader.load(new URLRequest("mytext.txt"));

function onLoaded(e:Event):void {
trace(e.target.data);
}