PDA

View Full Version : Fixing a Firefox / wmode problem


sparklywater
02-26-2010, 07:32 AM
I'm trying to apply the following code to fix a known problem with using wmode and Firefox. There is a fix that is described here: http://mrsteel.wordpress.com/2009/06/05/code-snippets-solving-flash-problem-with-wmode-and-firefox/


I've tried applying the following code to my page using the plugin system in vBulletin, but got a 'T_string' error at the top of the page. Can someone please tell me if this is the right way to do it?

addEventListener(Event.ENTER_FRAME, _listenLoading);// on enter frame to check if it?s loaded

private function _listenLoading(e:Event):void {
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal) {
removeEventListener(Event.ENTER_FRAME, _listenLoading);
_onSiteLoaded();
}
}

Marco van Herwaarden
02-26-2010, 01:07 PM
That is not PHP. My guess is that this is flash actioncode.