# \[MX\] iFrame Navagation and Flash Buttons

**URL:** https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867
**Category:** flash
**Created:** [August 7, 2003, 12:07pm UTC](https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867 "2003-08-07T12:07:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Keith130](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@Keith130](https://forum.kirupa.com/u/Keith130)
#### Post date: [August 7, 2003, 12:07pm UTC](https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867/1 "2003-08-07T12:07:40Z")

</div>

I have searched the forums and know that you can use

[AS]  
on(release){  
getURL(“somefile.htm”, “someframe”);  
}  
[/AS]

But I have and iframe and I want to load a new .htm file into it my HTML is here

> 

{iframe src=“main.htm” height=“87%” width=“900” align=“middle” frameborder=“0” scrolling=“auto” name=“mainFrame”} {/iframe}

I used {} 'cos I dont know if the froum uses HTML any way I tried to do

[AS]  
on(release){  
getURL(“help.aspx”, “mainFrame”);  
}  
[/AS]

But It didnt work…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 7, 2003, 1:19pm UTC](https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867/2 "2003-08-07T13:19:23Z")

</div>

try adding

id=“mainframe”

into the iframe tags! I can’t remember if the name was supposed to be the frame name of was it the ID!  
Try that one!

edit: nevermind! It wasn’t the ID!!! :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 7, 2003, 1:28pm UTC](https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867/3 "2003-08-07T13:28:11Z")

</div>

:-\ I used the same techinque at my homepage and it works perfectly! Try some other file like .htm, maybe it’s the .aspx!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 7, 2003, 1:44pm UTC](https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867/4 "2003-08-07T13:44:04Z")

</div>

should work! make sure you named them (_iframe and AS script_) correctly

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 7, 2003, 2:08pm UTC](https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867/5 "2003-08-07T14:08:30Z")

</div>

Does the .swf and the .fla have to be in the same directory as the files I am linking to?

[EDIT] Can someone post me a working example? [/EDIT]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 7, 2003, 3:21pm UTC](https://forum.kirupa.com/t/mx-iframe-navagation-and-flash-buttons/27867/6 "2003-08-07T15:21:29Z")

</div>

It doesn’t matter where the .fla is but the .aspx page and the .swf definately have to be in the same folder!
