This user is yet to take control of their account and provide a biography. If you are the author of this article, please contact us via support AT actionscript DOT org. 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:
[code]javascript:openNewWindow('somePage.html','thewin',
'height=100,width=250,toolbar=no,scrollbars=yes');[/code]
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.
[code]<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>[/code]
Add the following parameter inside the <EMBED> tag in your HTML page which houses the SWF file:
[code]swLiveConnect=true NAME=yourmovie.swf[/code]
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