Tutorial by Examples

Create a Loader object: var loader:Loader = new Loader(); //import Add listeners on the loader. Standard ones are complete and io/security errors loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); //when the loader is done loading, call this function loader.co...
A simple example on how to read a UTF text file synchronously. import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesystem.FileStream; //First, get a reference to the file you want to load var myFile:File = File.documentsDirectory.resolvePath("lifestory.txt&...

Page 1 of 1