Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Latest AIR update going application to crash.

New Here ,
Sep 22, 2013 Sep 22, 2013

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?

TOPICS
Performance issues
459
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 22, 2013 Sep 22, 2013
LATEST

Could you please share the device with OS version you are using.

Regards,

Nimit

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines