Flash crashing Firefox Windows, PC “@” symbol not working…
26th June 2009Sometimes nasty and seemingly inexplicable bugs just get on your case.
You have a Flash app… its sweet, all working on every browser, every platform… until the client calls up and says “its crashing on Firefox Windows”. You do not believe the client. How can that be? Its Flash. Its supposed to be consistent across all browsers. But no… we have suffered DEEP nightmares with browser-specific issues in Flash recently.
This one is a quick fix.
If you are suffering crashes with your Flash app in Firefox Windows, or you have a textfield that is not responding to the PC input of the “@” symbol… but only to where the symbol would be on a Mac – ie. SHIFT-2, then check to see if your Flash app’s HTML container has the “wmode” parameter explicitly set. If it IS set, remove it. In our case, this fixed the app, and saved our day from a hellish and probably soul-destroying bug-hunt.
We are using SWFObject to embed the app. Here is the culprit:
Not working
var flashVars = { vars: "notShown" };
var flashParams = {
menu: "false",
allowScriptAccess: "sameDomain",
scale: "noscale",
wmode:"opaque" };
swfobject.embedSWF("app.swf", "flashContent", "950", "600", "9.0.0", "/assets/swf/expressInstall.swf", flashVars, flashParams, {id:"appID"});
Working
var flashVars = { vars: "notShown" };
var flashParams = {
menu: "false",
allowScriptAccess: "sameDomain",
scale: "noscale" };
*** NOTE - wmode param removed ***
swfobject.embedSWF("app.swf", "flashContent", "950", "600", "9.0.0", "/assets/swf/expressInstall.swf", flashVars, flashParams, {id:"appID"});

