finding mp3 files on android phone using air


i'm trying display mp3 files on phone in list can't seem figure out how access files on phone.

 

i'm trying things like:

var file:file = file.desktopdirectory; // read gave me /mnt/sdcard on android phone

var files:array = file.getdirectorylisting();

 

but if trace length of files equals 0.

 

what have find files?

use getdirectorylistingasync(); method , add event listener file

file.addeventlistener(filelistevent.directory_listing,ff);

protected function ff(event:filelistevent):void

                    {

                    var file:file= event.target file;

var  arr:array=file.getdirectorylisting();

trace(arr.length);

 

 

 

 

                    }



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support