[MX] iFrame Navagation and Flash Buttons

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…

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

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

should work! make sure you named them (iframe and AS script) correctly

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]

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