Hi,
I've tried using this
with the Flash AIR component, but it gives me this compile errorCode:// List the contents of the user's home directory var dir:File = File.userDirectory; dir.listDirectoryAsync(); // Listen for the appropriate event to handle when the listing is complete dir.addEventListener( FileListEvent.DIRECTORY_LISTING, handleDirectoryListing ); private function handleDirectoryListing( event:FileListEvent ):void { // Display a header trace( "Name\tSize\tDir?\tCreated On" ); // Loop over all of the files and subdirectories, and display // some relevant information about each item in the console window for each ( var item:File in event.files ) { trace( item.name + "\t" + item.size + "\t" + item.isDirectory + "\t" + item.creationDate ); } }
"1046: Type was not found or was not a compile-time constant: FileListEvent."
thanks for any help.




Reply With Quote