PDA

View Full Version : html frame problem



nelson1983
July 13th, 2007, 02:48 PM
Hi everyone :eye:,

I've got a problem with a little project that i'm doing.

I have a HTML page which is made of a top frame that holds a swf file (menu with links)
and a bottom frame that holds html (dynamic content).

the html that i got is:
<frameset rows="*" cols="1%,750,1%" frameborder="NO" border="0" framespacing="0">
<frame src="left.htm" name="leftFrame.htm" scrolling="NO">
<frameset rows="265,*" frameborder="NO" border="0" framespacing="0">
<frame src="links.htm" name="topFrame" scrolling="NO" noresize>
<frame src="mainFrame.htm" name="mainFrame" scrolling="NO">
</frameset>
<frame src="right.htm" name="rightFrame.htm" scrolling="NO">
</frameset>
</frameset>
<noframes><body>

Now in my swf that is located in the links.htm page I try to change the HTML in the mainFrame.htm using the following actionscript on my buttons:

//menu buttons
////page1
page1_btn.onRelease = function() {
holder.pictureholder.unloadMovieNum(1);
holder.pictureholder.loadMovie("Pictures/page1.swf",1);
getURL("page1.htm", "mainFrame");
};
////page2
page2_btn.onRelease = function() {
holder.pictureholder.unloadMovieNum(1);
holder.pictureholder.loadMovie("Pictures/page2.swf", 1);
getURL("page2.htm", "mainFrame");
};
//etc.

I tried some other things but it keeps op opening the page1.htm etc. in my topFrame.htm

What the hell am i doing wrong???????!

thatguythatsme
July 13th, 2007, 03:17 PM
Can I ask if there is any specific reason to using frames and what seems to be multiple swf files for a single menu?

David :D

nelson1983
July 13th, 2007, 03:37 PM
No the swf's that i am loading are just pictures that get loaded in a container inside the menu who match the option of the menu that the user just chose.

So basically the menu is just 1 swf file that loads in a picture and a html page.

nelson1983
July 14th, 2007, 10:45 AM
Thanks but i already fixed it :h: