I'm developing an iFrame Facebook application. The iFrame has a swf. We need to get access to that swf through javascript.
This iFrame has a swf that needs to be put inside a Javascript variable so that we can call ExternalInterface functions from.
Right now, our "flash" variable is undefined because we can't seem to access elements of that iFrame, as that evokes a sandbox security warning, as evoking window or document in this way means we're accessing this content from the parent's site, which is Facebook.
Right now, we're doing something like:
if(navigator.appName.indexOf("Microsoft") != -1)
{
flash = window["swfr"];
}
else
{
flash = document["swfr"];
}
I'm sure there's a way to make this work, but unfortunately, I'm just not seeing it. I appreciate any help.