Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Returning list of files in directory not working.

$
0
0

Gidday

 

I'm using the following code to try to put a listing of files in a dir into an array.

 

I created a dir call myDir in the same place as my .swf and .air, and placed a file in it.  But I get error messages telling me the File or directory does not exist.

 

Why would this be?

 

var dir:File = File.desktopDirectory.resolvePath("myDir");
var files:Array = dir.getDirectoryListing();

 

Thanks for taking a look.


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>