I'm trying to display all mp3 files on a phone in a list but I can't seem to figure out how to access the files on the phone.
I'm trying things like:
var file:File = File.desktopDirectory; // I read that this gave me /mnt/sdcard on an android phone
var files:Array = file.getDirectoryListing();
but if I trace the length of files it equals 0.
What do I have to do to find all the files?
use getDirectoryListingAsync(); method and add event listener to the file
protected function ff(event:FileListEvent):void
var file:File= event.target as File;
Europe, Middle East and Africa