In Flash 8 the code, which worked for Flash 6 does not work any more. Flash has introduced a new class, the ExternalInterface class. This class has several methods, one of which is call. Press the button in the movie to see the script for the movie. The javascript for the html page is shown below. Of course this will only work if the user has not blocked opening popup windows. IMPORTANT: Internet Explorer requires special publish settings in the html.
<param name="allowScriptAccess" value="always" /> <embed .... allowscriptaccess="always" .... />
Write this script in the header of your HTML page which encodes your swf:
<SCRIPT>
<!--
function openWindow(newWindow){
window.open(newWindow, "myFile", "width=750, height=300, scrollbars=no, top=0");
}
-->
</SCRIPT>
"newWindow" is the argument holding your html file, which you want to open. You can define of course any height and width or position as you like.