# Centered Popup

**URL:** https://forum.kirupa.com/t/centered-popup/16623
**Category:** flash
**Created:** [March 26, 2003, 10:18pm UTC](https://forum.kirupa.com/t/centered-popup/16623 "2003-03-26T22:18:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TheGSB](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@TheGSB](https://forum.kirupa.com/u/TheGSB)
#### Post date: [March 26, 2003, 10:18pm UTC](https://forum.kirupa.com/t/centered-popup/16623/1 "2003-03-26T22:18:26Z")

</div>

Hey folks, thanks ahead of time…

I used the tutorial for Kirupa’s centered pop-up ([http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)) and that works fine initially. Within the swf file that loads into the popup window, a loadmovie command is executed that has two buttons. I tried to place the same pop-up structure on these buttons and they do not work. The buttons are supposed to load pop-up html files containing a quicktime movie. Why don’t they work?

Things I have already checked:

1. All the code seems to be in the right place
2. All the variables are input correctly
3. All the quicktime odds and ends are working.

I appreciate the help. Take care.

---

<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: [March 27, 2003, 4:24am UTC](https://forum.kirupa.com/t/centered-popup/16623/2 "2003-03-27T04:24:01Z")

</div>

this could be a relative addressing problem… so maybe try not using \_root in your actionscript, because when a loadMovie command is used, the root timeline of the loaded movie is no longer its real root.

read up here:

[http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp](http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp)

---

<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: [March 27, 2003, 5:32am UTC](https://forum.kirupa.com/t/centered-popup/16623/3 "2003-03-27T05:32:48Z")

</div>

i think it’s because you are using loadmovie. This script has to be  
executed from an html page, not directly out of an swf file.

Try getting those buttons to load within the movie that’s embeded  
in the html page, I bet they work then. 😉
