Here is a quick yet very helpful little tid-bit for opening a new browser window from Flash. The basics is this: you call some javascript from Flash using the getURL. Here is what you put in Flash:
//Put this on your button
on (release) {
getURL("javascript:Launch('http://www.yourSite.com/')");
}
//Or this on the main timeline where your button resides:
myButton.onRelease=function(){
getURL("javascript:Launch('http://www.yourSite.com/')");
}
So, that means you need some JavaScript on your html page:
function Launch(page) {
OpenWin = this.open(page, "MYWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,
resizable=no,width=400,height=200");
}
That’s it. You can modify the look of your new pop-up browser window by ajusting the other attributes of the window like menubar=yes, or toolbar and so forth.
Related Posts:
Posted in: Flash Helps | Comments Off