Copy link to clipboard
Copied
There is a small debug code:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.FileListEvent;
import flash.filesystem.File;
import flash.net.FileFilter;
public class AIROpenFilesTest extends Sprite
{
public function AIROpenFilesTest()
{
init();
}
private function init():void {
var f:File = File.desktopDirectory;
var filter:FileFilter = new FileFilter("*.*", "*.*");
f.browseForOpenMultiple("Open files...", [filter]);
f.addEventListener(FileListEvent.SELECT_MULTIPLE, onSelectFiles);
f.addEventListener(Event.CANCEL, onBrowseCanceled);
}
private function onBrowseCanceled(event:Event):void
{
var f:File = event.target as File;
f.removeEventListener(FileListEvent.SELECT_MULTIPLE, onSelectFiles);
f.removeEventListener(Event.CANCEL, onBrowseCanceled);
}
private function onSelectFiles(event:FileListEvent):void
{
var f:File = event.target as File;
f.removeEventListener(FileListEvent.SELECT_MULTIPLE, onSelectFiles);
f.removeEventListener(Event.CANCEL, onBrowseCanceled);
trace("\nFiles selection amount: " + event.files.length);
}
}
}
Before latest update it worked well (I could open up to 1024 files at once). But now if I going to open 260+ files then application will crash!!! How to fix it in code? When you will fix this issue?
Copy link to clipboard
Copied
Could you please share the device with OS version you are using.
Regards,
Nimit