given:
Java is buggy when you write with ImageIO.write. (hint: takes more than 20 seconds to finish up writing to a .png file).
They are laying off 6000 people at sun (or so i heard), some of which are java people so this bug won’t get fixed any time soon.
I want:
a work around in flash. Basically I would like to check to see if the file created by Java that flash is waiting on is ready and if it’s not ready keep trying to load it until it is ready at which point the “try to load” will succeed. Is there any way to do this? I see that calling the load function in caught/listened errors won’t cause a loop back to the catch block or event listener again if the first error is caught/listened so that isn’t a working strategy. What i need is some loop that checks if the file is available yet that runs until it is available.