# Pop up - please help

**URL:** https://forum.kirupa.com/t/pop-up-please-help/183704
**Category:** Uncategorized
**Created:** [March 29, 2006, 10:46am UTC](https://forum.kirupa.com/t/pop-up-please-help/183704 "2006-03-29T10:46:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ricardomacedo](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@ricardomacedo](https://forum.kirupa.com/u/ricardomacedo)
#### Post date: [March 29, 2006, 10:46am UTC](https://forum.kirupa.com/t/pop-up-please-help/183704/1 "2006-03-29T10:46:55Z")

</div>

I`m working on a flash web page and I’m having a big(small) problem with a pop up window…

I have the main.swf then I call the portfolio.swf and from this one the last .swf, in this last one I have a movie clip and a button, from this button I want to call a pop up in a centered window… I’m using the kirupa example and I can´t make it work…  
Anybody can help me?

When I used the button in the main.swf it works… but when I used in a .swf tha it’s called from the main.swf doesn’t work…

Thanks,

Ricardo

---

<div class="post-metadata">

### Author: ![ferdibulbul](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@ferdibulbul](https://forum.kirupa.com/u/ferdibulbul)
#### Post date: [March 29, 2006, 11:04am UTC](https://forum.kirupa.com/t/pop-up-please-help/183704/2 "2006-03-29T11:04:38Z")

</div>

write the codes or send the fla file…

i think it is because \_root and \_parent problem…

---

<div class="post-metadata">

### Author: ![ricardomacedo](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@ricardomacedo](https://forum.kirupa.com/u/ricardomacedo)
#### Post date: [March 29, 2006, 11:29am UTC](https://forum.kirupa.com/t/pop-up-please-help/183704/3 "2006-03-29T11:29:55Z")

</div>

I was able to do it with this code:

[FONT=Courier New][LEFT][COLOR=#0000FF]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]getURL[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“javascript:NewWindow=window.open(‘[http://www.xxx.com](http://www.xxx.com)’,‘newWin’,‘width=576,height=619,left=498,top=186,scrollbars=no’); NewWindow.focus(); void(0);”[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

now… I would like to open it centered… what should I change in the script?

Sorry for the inconvenience and thanks a lot for the quick reply,

Greetings,

Ricardo
