I am trying to make a flash button do what I've always done with JavaScript, open a new browser window of a specific dimension with an .htm of my choice. This is it in JS:
//Script for window to open another window
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<body>
<p align="center"><a href="#" target="_self"
onMouseDown="MM_openBrWindow('newWindow.html','','width=100,height=400,top=165,left=575')"></a></p>
//Script for new window
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
theUrl = 'newWindow.html'
lockU = 1
function doAgain() {
if (lockU == 1) {
reWin=window.open(theUrl)
}
}
</script>
</HEAD>
<BODY>
<a href="javascript:lockU=0;self.close()"></a>
</BODY>
</HTML>
Now, how do I make flash do the same thing? What's the code to put in the button param's after:
on (press) {
getURL ("archMenu.htm", "_blank"
;
}
ironworks [
) (plaintext emoticon: raised eyebrow guy)
//Script for window to open another window
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<body>
<p align="center"><a href="#" target="_self"
onMouseDown="MM_openBrWindow('newWindow.html','','width=100,height=400,top=165,left=575')"></a></p>
//Script for new window
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
theUrl = 'newWindow.html'
lockU = 1
function doAgain() {
if (lockU == 1) {
reWin=window.open(theUrl)
}
}
</script>
</HEAD>
<BODY>
<a href="javascript:lockU=0;self.close()"></a>
</BODY>
</HTML>
Now, how do I make flash do the same thing? What's the code to put in the button param's after:
on (press) {
getURL ("archMenu.htm", "_blank"
}
ironworks [