In the bug he mentioned there's a code but that may not be his. In that
example though, the handler is setup like so,
protected function onModelSelected(e:Event):void {
var fr:FileReference = e.currentTarget as FileReference;
fr.addEventListener(Event.COMPLETE, onModelDone);
fr.addEventListener(ProgressEvent.PROGRESS, onProgress);
// trace("loading...");
// setTimeout(function():void {fr.load()}, 1);//this will work
fr.load(); //this won't
trace("loading2...");
}
In the code above the file reference may be garbage collected before the
complete event is fired. I think that when he uses the setTimeout he's
keeping a reference to file around long enough for the event to be
dispatched.
On Sun, Feb 2, 2014 at 6:30 PM, OmPrakash Muppirala <[email protected]>wrote:
> On Jan 31, 2014 11:35 AM, "Matthew Weir" <[email protected]> wrote:
> >
> > Hey all,
> >
> > Stuck using Flex 3.x on this particular project and apparently Mac Safari
> and Firefox don't fire off the Event.SELECT event.
> > Unresolved bug file:
> https://bugbase.adobe.com/index.cfm?event=bug&id=3687113
> >
> > I'm restricting file extensions, file size etc on the client side and
> that's when I'm running that validation (after file is selected and before
> upload attempt).
> >
> > Can any of you think of an alternative prior to me moving that validation
> logic to the server side after the upload attempt??
> >
> > Thanks,
> >
> > Matthew
>
> Posting a code snippet would be useful to help debug your problem
>
> Thanks,
> Om
>