ok this problem is seriously annoying me any help would be great as im on a deadline.
i have created a fully flash website and on the home page there is a button that i wish to open a pop up of a predetermined size. i have exported my site as a movie and embedded it within a html file. i am using flash CS3 with actionscript 2.0.
i have tried many different examples and nothing seems to work. i have had it so when i test my movie within flash pressing the button makes my browser open a new blank page. but when i try to use the HTML file with the flash movie embedded within it the button does absolutely nothing.
any help would be gratefully recieved
code for HTML embedded within the HEAD tags:
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</SCRIPT>
code for flash button:
on (release) {
getURL(“javascript:openNewWindow(‘http://www.macromedia.com’,‘thewin’,‘height=400,width=400,toolbar=no,scrollbars=yes’)”);
}