Written by: Strok
Difficulty Level: Beginner
Requirements: Flash 4 or above

Download the source for this tutorial.

The code for this tutorial is divided into 2 parts HTML code and FLASH code

Part 1 -- FLASH code

In actions choose the GET URL function and paste in following code:

javascript:openNewWindow('somePage.html','thewin',
 'height=100,width=250,toolbar=no,scrollbars=yes');

Where somePage.html is the filename or URL of the page or site you wish to pop up.
Note: The above code is spread over two lines for tutorial neatness only. In Flash it need be on only one line.

Part 2 ---HTML code

Paste this code exactly as it appears below, between the HEAD tags in the HTML source.

<script language="JavaScript">
     function openNewWindow(URLtoOpen, windowName, windowFeatures) {
         newWindow=window.open(URLtoOpen, windowName, windowFeatures);
     }
</script>

Add the following parameter inside the <EMBED> tag in your HTML page which houses the SWF file:

swLiveConnect=true NAME=yourmovie.swf

Replace "yourmovie" with the name of flash movie. You can put it anywhere inside the <EMBED> tag, but perhaps the best place would be after the WIDTH and HEIGHT parameters
Note: This is important as it allows the Flash movie to communicate with the JavaScript code.