Hi all,
I am writing my application in ExtJS and PHP, and I need actionscript to build a folder browser just to get the folder path.
Unfortunately, I am unfamiliar with ActionScript.
However, upon searching on the web, I have found this little script:
import flash.filesystem.File;
import flash.events.Event;
var directory:File = File.documentsDirectory;
try
{
directory.browseForDirectory("Select Directory");
directory.addEventListener(Event.SELECT, directorySelected);
}
catch (error:Error)
{
trace("Failed:", error.message);
}
function directorySelected(event:Event):void
{
directory = event.target as File;
var files:Array = directory.getDirectoryListing();
for(var i:uint = 0; i < files.length; i++)
{
trace(files[i].name);
}
}
Does anyone know how to integrate this with my ExtJS/Javascript and PHP?
I am open to other options as well.
Many thanks!!!