bootros01
12-06-2004, 04:51 PM
Ok my problem is that I can get one pop up to work in my Flash movie, but as soon as I try to add more it doesn't work. No matter what Button I click it pops up the same html file.
For example I have three buttons with the following code;
Button 1 has;
on (release) {
getURL ("javascript:openNewWindow('movieclip1.html','movie1 ','height=264,width=355,toolbar=no,statusbar=no,sc rollbars=no');");
}
Button 2 has;
on (release) {
getURL ("javascript:openNewWindow('movieclip2.html','movie2 ','height=264,width=355,toolbar=no,statusbar=no,sc rollbars=no');");
}
and Button 3 has
on (release) {
getURL ("javascript:openNewWindow('movieclip3.html','movie3 ','height=264,width=355,toolbar=no,statusbar=no,sc rollbars=no');");
}
Then I put the following in the head of the html document that contains the SWF.
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open('movieclip1.html','movie1',' height=264,width=355, toolbar=no, statusbar=no, scrollbars=no'); }
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open('movieclip2.html','movie2',' height=264,width=355, toolbar=no, statusbar=no, scrollbars=no'); }
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open('movieclip3.html','movie3',' height=264,width=355, toolbar=no, statusbar=no, scrollbars=no'); }
</script>
Each button I click opens up movieclip3.html. And I can't figure out why.
Any ideas or suggestions. Thanks in advance!
For example I have three buttons with the following code;
Button 1 has;
on (release) {
getURL ("javascript:openNewWindow('movieclip1.html','movie1 ','height=264,width=355,toolbar=no,statusbar=no,sc rollbars=no');");
}
Button 2 has;
on (release) {
getURL ("javascript:openNewWindow('movieclip2.html','movie2 ','height=264,width=355,toolbar=no,statusbar=no,sc rollbars=no');");
}
and Button 3 has
on (release) {
getURL ("javascript:openNewWindow('movieclip3.html','movie3 ','height=264,width=355,toolbar=no,statusbar=no,sc rollbars=no');");
}
Then I put the following in the head of the html document that contains the SWF.
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open('movieclip1.html','movie1',' height=264,width=355, toolbar=no, statusbar=no, scrollbars=no'); }
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open('movieclip2.html','movie2',' height=264,width=355, toolbar=no, statusbar=no, scrollbars=no'); }
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open('movieclip3.html','movie3',' height=264,width=355, toolbar=no, statusbar=no, scrollbars=no'); }
</script>
Each button I click opens up movieclip3.html. And I can't figure out why.
Any ideas or suggestions. Thanks in advance!