I have this code which works fine when selecting a small number of images.
public var fileReferenceList:FileReferenceList;
public function browseFiles(event:Event = null):void
{
fileReferenceList= new FileReferenceList();
fileReferenceList.addEventListener(Event.SELECT,onMultipleFileSelect);
fileReferenceList.browse("images");
}
private function onMultipleFileSelect(event:Event):void
{
fileReferenceList.removeEventListener(Event.SELECT,onMultipleFileSelect);
var fileList:Array = event.target.fileList;
trace(fileList[0].name);
}
However, when selecting a large number of images (1000+), the fileList isn't initialized yet when the SELECT event is dispatched. Is there a way to wait for the fileList to be initialized?