What is the method for folder-browsing and selecting a non media file type in Android? [Air+AS3]
Dear Gurus,
Being a newbie, I have been searching hi & low for the method to browse and select non-media related file type in android.
Besides the following these which I have reference from the AS3 Documentation (http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7fe4.html#WS5b3ccc516d4fbf351e63e3d118676a4c56-7ff0)
var fileToOpen = File.documentsDirectory.resolvePath("");
selectFile(fileToOpen);
function selectFile(root:File):void
{
//var txtFilter:FileFilter = new FileFilter ("3D Model File", "*.obj; *.3ds;*.awd");
root.browseForOpen("Open",null);
root.addEventListener(Event.SELECT, selectedFile);
}
function selectedFile(e:Event):void
{
trace(fileToOpen.nativePath + " file selected");
}
I have went through the following threads yet find no clear workable solution to it. The closest reference is written in Flex MXML, and I have no luck for converting it to AS3 as there are several properties which I can't get it right.
http://forums.adobe.com/thread/943887 | http://forums.adobe.com/message/4107990#4107990 | http://forums.adobe.com/message/4548154
Someone did mention some possible solutions through ANE but it is just too far beyond. Even, the closest on-the-shelf solution of ANE by http://myappsnippet.com/file-browser-air-extension/ only work best to an extent and not truely "native" as the UI is not default from Android. It has workable I/O but poor usability; you can't skin it.
Is there any other workaround solution to this general I/O question? I would love to hear from everyone here.
