Could anybody please give me an idea of how to go about to read from a text Box (inputTwo) the required pathway as (fileName = myDirectory/myTextFile.txt) into the AS portion of this code.
Code:
private var fileName:String = new String(inputTwo.text);
private function createFile(fileName:String):void {
var file:File = File.desktopDirectory.resolvePath("fileName");
}
If the user writes the name of a file, and using something like this:
var file:File = File.desktopDirectory.resolvePath(fileName);
Note I don't use quotes for the argument, you get a File reference if the file exists in the user desktop (desktop will vary with OS), if the file is not there, you get a null reference
I assume you're working on AIR or Flash Projector