Multiple pop up windows - please help

i am using mx and publishing in 5. i am using this tutorial

and it works fine…but i tried to use multiple popup windows and the script gets confused because it just looks for the same script over and over. what is the best script to use for multiple pop ups each having a different size?

thanks for the help so far,


Ok, I am going to give you something completely different. I am going to give you a centered pop up script I wrote a while back that allows for you to change the size and location of the window for each link (board my add extra spaces to the script that you may have to remove)…

<SCRIPT LANUGAGE="javascript">
function newWin(page,winName,w,h,scrollb,resize) {
var win=null;
centerWidth = (screen.width) ? (screen.width-w)/2 : 0;
centerHeight = (screen.height) ? (screen.height-h)/2 : 0;
settings =
win =,winName,settings);

Add the above script in between the head tags of your html page.

Call the link in Flash with this…

on (release) {

What this does…

The first part is obviously the URL, the next is the window name (no spaces), then it is the width, then height, and if it is scrollable, and last but not least, if it is resizeable (you can replace no with yes, or use the standard 0 for false and 1 for true way).

I hope this helps. Works out of both Flash 5 and MX.