# Make a pop up with dynamic url

**URL:** https://forum.kirupa.com/t/make-a-pop-up-with-dynamic-url/4727
**Category:** Uncategorized
**Created:** [August 17, 2002, 5:20pm UTC](https://forum.kirupa.com/t/make-a-pop-up-with-dynamic-url/4727 "2002-08-17T17:20:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nowayandnohow](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nowayandnohow](https://forum.kirupa.com/u/nowayandnohow)
#### Post date: [August 17, 2002, 5:20pm UTC](https://forum.kirupa.com/t/make-a-pop-up-with-dynamic-url/4727/1 "2002-08-17T17:20:12Z")

</div>

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 = “[http://www.kirupa.com/modular/pop-up.htm](http://www.kirupa.com/modular/pop-up.htm)”;  
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 = “[http://www.kirupa.com/modular/pop-up.htm](http://www.kirupa.com/modular/pop-up.htm)”;

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.

anyone?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 19, 2002, 2:59am UTC](https://forum.kirupa.com/t/make-a-pop-up-with-dynamic-url/4727/2 "2002-08-19T02:59:34Z")

</div>

What did you try exactly?

pom :asian:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 22, 2002, 3:31pm UTC](https://forum.kirupa.com/t/make-a-pop-up-with-dynamic-url/4727/3 "2002-08-22T15:31:58Z")

</div>

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?
