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