For those who would like to know:
private function selectHandler(event:Event):void
{
myFiles = files.fileList;
}
The previous function crashes IE7 on Windows Vista - I'd be
interested in learning why.
The following does not:
private function selectHandler(event:Event):void
{
myFiles = myFiles.concat(files.fileList);
}
Over my head - but probably something fairly uncomplicated.. :D
--- In [email protected], "nathanpdaniel" <[EMAIL PROTECTED]>
wrote:
>
> I am writing a simple app to upload files to a server. Running FB3
> and IE7. I have a FileReferenceList object which I'm calling the
> browse() function on. I select the files the first time around and
> it works great. However, when I click my "browse" button a second
> time, the file browser comes up normally, I can search for my
file.
> When I try to select it, IE7 crashes. No errors are thrown, no
> exceptions, just an IE7 window saying there was an error in the
> application.
> My select handler function looks like this:
>
> private function selectHandler(event:Event):void
> {
> fileList.removeEventListener(Event.SELECT, selectHandler);
> var files:FileReferenceList = FileReferenceList(event.target);
> myFiles = files.fileList;
> fileList.addEventListener(Event.SELECT, selectHandler);
> }
>
> I've gone thru debugging and no matter where I put in my
breakpoint,
> the 2nd time thru, it crashes.
>
> Any ideas? Or have I somehow discovered a FB3 bug? :D
> -Nathan
>