wmode = transparent == wtf?
I thought I’d seen it all, but this is one of the strangest. A developer on my team built a standard preloader using the MovieClipLoader class, been done a million times. Very standard stuff, using the onProgress event to position a progress bar by calculating the percentage with the bytesTotal and BytesLoaded arguments. Worked perfectly in IE on a PC. In Firefox the progress wouldn’t move past 0% unless the user moved their mouse. WTF?!?
After hundreds of traces, an old school loadMovie with an onEnterFrame or interval calculating the load progress with getBytesLoaded() and getBytesTotal() every iteration, Nothing!. Same thing everytime. 0% unless we moved the mouse and only in Firefox on a PC.
Pulling at straws, and approximately 2 minutes before our systems took a 3 story plunge, we removed the wmode=transparent attribute in the embed html tag. Voila, the problem magically disappeared. Again, in unison WTF?!?.
Why the heck would the transparency effect the preloader? I have run into issues with memory spikes when wmode is set to transparent but things always work, just a little slower. Don’t get me wrong, I rarely use wmode=transparent, but in this case the designer had something specific in mind and there was no way around it. Well guess what, we ended up convincing the designer to change the background so it would match seamlessly in html and flash. Now we don’t have to worry about this.
Has anyone else seen this? Are we on crack? Feel free to contact me if you have seen this behaviour before. Soon I will have the comments section built and you will be able to post your comments right here. Right now I am chalking this up as a bug in the Flash player for Firefox.