Flash Script – Popup Windows in Flash

By Georgina Laidlaw

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);

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

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

  • http://www.swadd.nl sillysicko

    This only works in AS2, because getURL is removed in AS3

Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in Front-end, once a week, for free.