# Flash Menu Linking to iFrame \[just did the tutorial still no workey\]

**URL:** <https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422>\
**Category:** web dev\
**Created:** [June 15, 2008, 10:24pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422 "2008-06-15T22:24:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisLove](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@ChrisLove](https://forum.kirupa.com/u/ChrisLove)\
**Post date:** [June 15, 2008, 10:24pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/1 "2008-06-15T22:24:00Z")

</div>

so i used the tutorial on kirupa, to link to an iframe… and the flash menu does not activate the pages on my website…

[http://thosedamngrooveaddicts.com](http://thosedamngrooveaddicts.com) is my page

i have my flash menu, and for the home button the code is

on (press){  
gotoAndPlay(86);  
}  
on (release) {  
getURL(“home.html”, “iframe”);  
}

so shouldnt it access the ‘home’ page inside the iframe??

pwease help!!

---

<div class="post-metadata">

**Author:** ![borrob](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@borrob](https://forum.kirupa.com/u/borrob)\
**Post date:** [June 16, 2008, 9:46am UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/2 "2008-06-16T09:46:09Z")

</div>

you have:  
\<iframe src="" name=“iframe” width=“391” marginwidth=“0” height=“332” marginheight=“0” scrolling=“auto” frameborder=“0” hspace=“0” vspace=“0”\>\</iframe\>

there’s no id!

should be:

\<iframe src="" id=“iframe” name=“iframe” width=“391” marginwidth=“0” height=“332” marginheight=“0” scrolling=“auto” frameborder=“0” hspace=“0” vspace=“0”\>\</iframe\>

---

<div class="post-metadata">

**Author:** ![ChrisLove](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@ChrisLove](https://forum.kirupa.com/u/ChrisLove)\
**Post date:** [June 17, 2008, 1:11am UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/3 "2008-06-17T01:11:25Z")

</div>

i copied and pasted the code… still no workey…

---

<div class="post-metadata">

**Author:** ![ChrisLove](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@ChrisLove](https://forum.kirupa.com/u/ChrisLove)\
**Post date:** [June 18, 2008, 2:54am UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/4 "2008-06-18T02:54:03Z")

</div>

alu?

---

<div class="post-metadata">

**Author:** ![ChrisLove](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@ChrisLove](https://forum.kirupa.com/u/ChrisLove)\
**Post date:** [June 20, 2008, 4:23pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/5 "2008-06-20T16:23:34Z")

</div>

anyone? can you help me? fellas?

---

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [June 23, 2008, 12:24pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/6 "2008-06-23T12:24:37Z")

</div>

Can you tell me what tutorial you used…i’ve been looking for a way to change the content of an iframe using flash buttons for ages…this could be the answer I’ve been looking for if I understand your original problem correctly.

Sorry I cant assist you further but perhaps after I have done the tutorial if your still having problems

Cheers.

---

<div class="post-metadata">

**Author:** ![actionAction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/actionaction/32/3987_2.png) [@actionAction](https://forum.kirupa.com/u/actionAction)\
**Post date:** [June 23, 2008, 6:19pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/7 "2008-06-23T18:19:41Z")

</div>

What version are you using?

Create a swf targeted at flash 6 actionscript 1 and put this code into it:

```auto

_level0.loadIFrame = function(urlTarget, iframeTarget){
   getURL(urlTarget, iframeTarget);
};   

```

load this movie into your original flash file:

```auto
loadMovieNum("iframeLoader.swf", 1);

```

you can now use this function from anywhere in your file, for example:

```auto
_level0.loadIFrame("pageToLoad.html", "targetIFrame");

```

---

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [June 23, 2008, 6:42pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/8 "2008-06-23T18:42:55Z")

</div>

Sorry, what do you mean create a swf targeted at flash 6?

And do I just load the movie in to my original swf but not on the stage, just put that line of code in frame 1?

---

<div class="post-metadata">

**Author:** ![actionAction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/actionaction/32/3987_2.png) [@actionAction](https://forum.kirupa.com/u/actionAction)\
**Post date:** [June 23, 2008, 6:49pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/9 "2008-06-23T18:49:23Z")

</div>

Create a new flash document, set the target version to flash 6, actionscript 1. Place that line of code in there, and publish it.

Yes, just put that line of code on frame 1.

---

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [June 23, 2008, 8:58pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/10 "2008-06-23T20:58:34Z")

</div>

Does this technique work if your original movie that contains the loadmovinum is flash 9 and AS3?

---

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [June 23, 2008, 9:06pm UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/11 "2008-06-23T21:06:20Z")

</div>

I tried this, I created a button.swf,

in the action slayer in the first fraem I have this:

loadMovieNum(“iframeLoader.swf”, 1);

test\_btn.onRelease = function() {  
\_level0.loadIFrame(“2WheelDrive.html”, “content”);  
}

I created the iframeLoader.swf using ur method. And I also published my button.swf using the same settings i.e flash 6 and AS 1.0, this gave no compile errors.

When I put this on my page as a test button, it should load a page into my iframe…but all it does is open in another window…see link:

[www.aceperformancecars.com](http://www.aceperformancecars.com)

…

Forget that…when uploaded to the web it works…

Thanks.

[www.aceper](http://www.aceper)

---

<div class="post-metadata">

**Author:** ![actionAction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/actionaction/32/3987_2.png) [@actionAction](https://forum.kirupa.com/u/actionAction)\
**Post date:** [June 24, 2008, 1:32am UTC](https://forum.kirupa.com/t/flash-menu-linking-to-iframe-just-did-the-tutorial-still-no-workey/263422/12 "2008-06-24T01:32:43Z")

</div>

> forget that…when uploaded to the web it works…

Thanks.

[www.aceper](http://www.aceper)

Glad it works. No problem.
