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

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

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>

i copied and pasted the code… still no workey…

alu?

anyone? can you help me? fellas?

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.

What version are you using?

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


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

load this movie into your original flash file:

loadMovieNum("iframeLoader.swf", 1);

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

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

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?

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.

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

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

Forget that…when uploaded to the web it works…

Thanks.

www.aceper

forget that…when uploaded to the web it works…

Thanks.

www.aceper

Glad it works. No problem.