Live Demo
http://alphatobravo.blogspot.com/2010/07/off-air-widget-iframe.html
Problem
I put a SWF inside an iFrame. This SWF has two URLRequests. One that goes to a normal website and another that goes to an .EXE file. The one that goes to a normal website works on all browsers. On Internet Explorer 8, the URLRequest that goes to the EXE file does not work. It opens a new browser window for a split second before killing it. If I go to the source of the iFrame directly, IE8 can open this URLRequest just fine. How do I get it working in IE8? The iFrame is mandatory.
HTML
<iframe
scrolling="no"
frameborder="0"
style="border:none; overflow:hidden; width:480px; height:352px;"
src="http://website.com/index.php/widget#5298C03CF19409081B08273597B37E28/true/default">
</iframe>
Actionscript
private function setDownloadLink(url:String):void
{
if (this.downloadLinkInitialized) {
return;
}
this.vlcInstallPrompt.downloadAnchor.buttonMode = true;
this.vlcInstallPrompt.downloadAnchor.useHandCursor = true;
this.vlcInstallPrompt.downloadAnchor.addEventListener(
MouseEvent.MOUSE_UP,
function(e:MouseEvent):void {
var v:URLRequest = new URLRequest(url);
navigateToURL(v);
}
);
this.downloadLinkInitialized = true;
}