PDA

View Full Version : [MX] iFrame Navagation and Flash Buttons



Keith130
August 7th, 2003, 08:07 AM
I have searched the forums and know that you can use


on(release){
getURL("somefile.htm", "someframe");
}


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


on(release){
getURL("help.aspx", "mainFrame");
}


But It didnt work.....

andr.in
August 7th, 2003, 09:19 AM
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!!!! :-\

andr.in
August 7th, 2003, 09:28 AM
:-\ I used the same techinque at my homepage and it works perfectly! Try some other file like .htm, maybe it's the .aspx!

fluid_0ne
August 7th, 2003, 09:44 AM
should work! make sure you named them (iframe and AS script) correctly

Keith130
August 7th, 2003, 10:08 AM
Does the .swf and the .fla have to be in the same directory as the files I am linking to?

Can someone post me a working example?

andr.in
August 7th, 2003, 11:21 AM
It doesn't matter where the .fla is but the .aspx page and the .swf definately have to be in the same folder!