Flash/Firefox
Flash/Firefox
Out of context: Reply #6
- Started
- Last post
- 9 Responses
- enjine0
yeah, i have what you're looking for. check it out--- the problem with fiefox (and safari too, i think), is that they take, like, an extra iteration of a function to actually interperet your incoming data. so, if you are preloading like this...
var percent = (loaded / total) * 100;
...then you have to take this extra step in mozilla:
var percent = isNaN((loaded/total * 100) ?
0 : (loaded/total * 100);That way, when the first data returned and processed in a mozilla browser results in NaN (not a number), it won't crap out your entire preload script. it just treats the NaN as 0 (zero).
that should fix yr problem.