on any button in Flash that you want to open a popup window with just right-click on the button and double click on getURL... select the getURL code at the top and in the box at the bottom type in:
javascript:yourpopupname() (Expression box should be unchecked)
yourpopupname can be anything you want...call it banana or whatever...makes no difference. just remember...whatever it is called in Flash must be exactly what you call it in the HTML file.
What goes in the HTML file that contains the Flash File...
Here is an example of 2 popup windows ... the first one is just a template to show you what supposed to go into the code, the second one is the actual code so you can see it in action.
as far as I know there are no limits other than file size as to how many popups you can have. popup to your hearts content!
<HEAD>
<TITLE>Your Title Goes Here</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function yourpopupname()
{
window.open("URL address of window to be opened as a popup","_blank","directories=0,menubar=0,scrollbars=0,toolbars=0,location=0,width=#of pixels,height=#of pixels,left=#of pixels from left edge,top=#of pixels from top edge");
}
function gallery()
{
window.open("photogallery/photo1.htm","_blank","directories=0,menubar=0,scrollbars=0,toolbars=0,location=0,width=550,height=400,left=0,top=0");
}
//-->
</SCRIPT>
</HEAD>
for all of the options above...0 denotes off while 1 denotes on as in binary computer language.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.