# URLRequest fails to open when Flash is inside iFrame

**URL:** <https://forum.kirupa.com/t/urlrequest-fails-to-open-when-flash-is-inside-iframe/312452>\
**Category:** flash\
**Created:** [August 3, 2010, 6:48pm UTC](https://forum.kirupa.com/t/urlrequest-fails-to-open-when-flash-is-inside-iframe/312452 "2010-08-03T18:48:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [August 3, 2010, 6:48pm UTC](https://forum.kirupa.com/t/urlrequest-fails-to-open-when-flash-is-inside-iframe/312452/1 "2010-08-03T18:48:14Z")

</div>

**Live Demo**

[http://alphatobravo.blogspot.com/2010/07/off-air-widget-iframe.html](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**

```php

<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**

```php

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;
}

```
