Pop-Up Window


The first step in launching the jukebox is to click the link from the Morning Records site. Since the jukebox will run in a pop-up window, we'll have to set up the link from the Flash movie to open a pop-up. To do this, we'll insert the following code into the movie on the button action:

 varwindowProps=  "width=200,height=326,directories=no,location=no,menubar= no,scrollbars=no,status=no,toolbar=no,resizable=no"; getURL("javascript:window.open('jukebox.html','jukebox',' "+windowProps+"');void(0);"); 

The first line sets the properties for the window. On the next line, the window.open() JavaScript method is called directly from the Flash Player to open the pop-up window.



Reality Macromedia ColdFusion MX. Macromedia Flash MX Integration
Reality Macromedia ColdFusion MX: Macromedia Flash MX Integration
ISBN: 0321125150
EAN: 2147483647
Year: 2002
Pages: 114

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net