# Fash Buttons & iframes with AS3

**URL:** https://forum.kirupa.com/t/fash-buttons-iframes-with-as3/314796
**Category:** flash
**Created:** [October 9, 2010, 1:08am UTC](https://forum.kirupa.com/t/fash-buttons-iframes-with-as3/314796 "2010-10-09T01:08:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Molfino](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@Molfino](https://forum.kirupa.com/u/Molfino)
#### Post date: [October 9, 2010, 1:08am UTC](https://forum.kirupa.com/t/fash-buttons-iframes-with-as3/314796/1 "2010-10-09T01:08:33Z")

</div>

What im trying to do is to link my Flash buttons using as3 to make an iframe change the html page its showing every time i click on a diferent button.

The web page is as follow:  
An html page containing a Flash menu and one iframe

i was using this code with no result:

CODE INSIDE THE FLASH SWF FILE  
var bt1:URLRequest = new URLRequest(“[http://www.webpage.html](http://www.webpage.htmll)”);  
function Fbt1(e:MouseEvent) : void{navigateToURL(bt1,“body”);}  
bt1.addEventListener(MouseEvent.CLICK, Fbt1);

CODE INSIDE THE HTML PAGE  
\<iframe src=“[http://www.webpage.html](http://www.webpage.html)” name=“body” align=“center” width=“1010” height=“500” margenwidth=“1010” margenheigth=“260” frameborder=“0”\>Browser dont suport iframes\</iframe\>\</TD\>

Please advice how this should be done. Thanx!!
