# Pop Up Tutorial - URGENT HELP PLEASE

**URL:** <https://forum.kirupa.com/t/pop-up-tutorial-urgent-help-please/232891>\
**Category:** flash\
**Created:** [July 18, 2007, 3:52pm UTC](https://forum.kirupa.com/t/pop-up-tutorial-urgent-help-please/232891 "2007-07-18T15:52:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gibry21](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gibry21](https://forum.kirupa.com/u/gibry21)\
**Post date:** [July 18, 2007, 3:52pm UTC](https://forum.kirupa.com/t/pop-up-tutorial-urgent-help-please/232891/1 "2007-07-18T15:52:34Z")

</div>

I am try to make an image pop up in a new window when the user clicks on a button which is within a movie clip in a scrolling gallery.

I am try to use this tutorial

[http://www.kirupa.com/developer/mx/centered\_popup.htm](http://www.kirupa.com/developer/mx/centered_popup.htm)

However, when I copy and paste this directed into my project it doesnt work.

I know my buttons are active because the code has been written in a way to make sure they are active once the mouse enters the movie clip, I know this because the roll over states are active on the buttons. Is it something to do with specifying the depth i’e root etc?

However, even if i just create a button in a new project and apply this code it still doesnt work…is the code wrong or is there something wrong with my browser and javascript…  
It does open a window, but its not centered and doesnt have any of the specified attributes and in the address bar it reads…

javascript:var%20myWin;%20if(!myWin%20||%20myWin.closed){myWin%20=%20window.open(‘[http://www.kirupa.com/modular/pop-up.htm’,‘kirupa’,‘width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=’+((screen.height/2)-(150))+’,left=’+((screen.width/2)-(200))+’](http://www.kirupa.com/modular/pop-up.htm','kirupa','width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top='+((screen.height/2)-(150))+',left='+((screen.width/2)-(200))+')’)}else{myWin.focus();};void(0);

Please help…urgent!!!

THanks.
