I have encountered quite the same problem. After repeatedly upload files, the
browser crashes - this happens in both Mozilla Firefox as well Opera. Uploading
200 files at a time is not a problem, but 10 times uploading 20 files in a
session will result in a crash.
The problem does not seem to be memory related (the problem occurs both in
very large as well very small flash movies), nor is it related to software
running on my PC, since it seems to be happening at other PC's as well. It
happens both at the filereference as well the filereferencelist.
Another nice thing I came around is the following try:
- create a new flash movie,
- add a button to it with the following action:
on(release) {
getURL(
http://labs.oinam.com/flash8/fileuploaddownload,"_blank");
}
- open the flash movie and click the link in a browser that uses tabs, such as
FireFox 1.5 or Opera
- in the window that opens, upload 2 or more images, and close that tab
- you'll notice that the original movie (the one containing the button you've
created) is now suddenly unloaded, showing only the message "movie not loaded"
upon right-click.
This happens with serval flash 8 file upload examples that can be found on the
net (the link provided is just an example). The behavior does not occur when
uploading only a single file.
Since I was building a web-application quite depending on file upload, I have
used the following workaround for the crashes:
- I have placed all code related to file uploads in a separate fileupload.swf
file
- I load this SWF when necessary (using loadMovieNum)
- On each new upload, I load this upload-movie again, in a new level (I run a
counter to increase the level to load the fileupload.swf in for each step)
- I do not unload the previous loaded fileupload.swf files, they simply remain
unused but loaded in levels in the flash movie. This is bad for memory, but
seems to be necessary because the crashes otherwise just continue to happen.
I am still investigating, so above assumptions are not necessarily 100% true,
but this were my observations so far.
greetz,
Barend