Hi.
I’m trying to do some popup windows from flash. Having a small problem.
Trawled the forums for a bit but didn’t find anything of use to me.
I have a flash button inside of my main window which opens a popup window just fine. When I put a button inside the popup to try and get it to open yet another popup,
nothing happens. Am using the same function parameters, tried changing the window names and the function name, but it won’t do it.
I’m not a flash programmer, so class structures, parent/child stuff etc. defy me.
Is there a simple way to do this?
My code is posted below:
Javascript:
<script language=“JavaScript”>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>
<SCRIPT LANGUAGE=“JavaScript”>
<!–
function openWindow(url, name, w, h) {
popupWin = window.open(url, name,‘width=’ + w + ‘,height=’ + h);
}
//–>
</SCRIPT>
Actionscript:
on (release) {
getURL(“javascript:openNewWindow(‘http://www.mysite.ca/test.html’,‘window’,'height=200,width=500,toolbar=no,scrollbars=no’)”);
}
Any help getting the buttons inside the popup to open another popup
is greatly appreciated!
cheers,
arno