Article

Home » Design and Layout » Flash Tutorials » Flash Script - Popup Windows in Flash

About the Author

SitePoint

View all articles by SitePoint...

Flash Script - Popup Windows in Flash

By SitePoint

April 28th, 2003

Reader Rating: 7

This tutorial will show you how to create a cool pop up windows with no toolbars.

1. Create a button in your Flash file.

2. Right click the button and go to actions give actions:

    getURL ("JavaScript:openWin('test.html', '250', '250')");

3. Publish your movie, selecting the HTML and Flash options you prefer.

4. Open the html page in notepad, and insert the following code in between the <head> and </head> tags.

<script language="JavaScript">
function openWin(url, w, h)
{
var winprop = "width=" + w + ",height=" + h;
openwin = window.open(url,'',winprop);
}
</script>


That's it! Preview your page in a browser.

If you liked this article, share the love:
Print-Friendly Version Suggest an Article

Sponsored Links

Rate This Article

  • 1
    Poor
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
    Great

Comment on This Article

Have something to say?

Post A Comment

You need to be a member of the SitePoint Forums to comment on this post. Sign Up

Already a member? Post using your SitePoint Forums account: