Web
Article

Flash Script – Open Browser in Flash

By Georgina Laidlaw

1. First we need JavaScript. If you’re not familiar with JavaScript, see our Javascript section.

 <SCRIPT language=JavaScript> 
var newwin;  
function launchwin(winurl,winname,winfeatures)  
{  
//This launches a new window  
newwin = window.open(winurl,winname,winfeatures);
}
</SCRIPT>

2. Insert the above code into the tags of your HTML document.

3. Now, assign the parameters of this new window to your Flash button. Here’s the code:

On (Release)  

Get URL ("javascript:launchwin('http://www.flashcircle.com'  
, 'newwindow' , 'height=800,width=800')")  

End On

4. That’s all you need to do. Press ctrl+enter to check the movie.

Meet the author
Georgina has more than fifteen years' experience writing and editing for web, print and voice. With a background in marketing and a passion for words, the time Georgina spent with companies like Sausage Software and sitepoint.com cemented her lasting interest in the media, persuasion, and communications culture.

No Reader comments

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

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