Make a pop up with dynamic url

i use 13 different clips, and i would like to have one page that runs this script:

on (press, release) {
//customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = “”;
target_winName = “kirupa”;
width = 400;
height = 300;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
//sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);

wich i got from this site. (you rock!)

What the movie caries from scene to scene is a flag, the flag has a name like “bolivia”. and all these flags refers to a certain clip. I would like to change the:

address = “”;

so that the URL is dynamic. I have tried all the IF statements i could come up with, but i just can’t make it work.


What did you try exactly?

pom :asian:

let me rephrase the question

There are 2 Scenes:

1 - here is where you click a button representing (in this case) a country.

2 - here is where you choose if you choose wich format you would like to view the related clip in (real, qtime or wma).

when you hit the “USA” button, i set a variable called country to USA, and if it is the “bolivia” button it sets to bolivia and so on

now, on the other page i run the script you can see above, and what i would like to do is to change the url depending on what the country variable is set to.

How do i do that?