# Help guys! code on flash mx not working anymore on mx 2004

**URL:** <https://forum.kirupa.com/t/help-guys-code-on-flash-mx-not-working-anymore-on-mx-2004/134535>\
**Category:** Uncategorized\
**Created:** [January 19, 2005, 10:53am UTC](https://forum.kirupa.com/t/help-guys-code-on-flash-mx-not-working-anymore-on-mx-2004/134535 "2005-01-19T10:53:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_core](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@the\_core](https://forum.kirupa.com/u/the_core)\
**Post date:** [January 19, 2005, 10:53am UTC](https://forum.kirupa.com/t/help-guys-code-on-flash-mx-not-working-anymore-on-mx-2004/134535/1 "2005-01-19T10:53:24Z")

</div>

Hi Guys, i think i need your help:) ok i have a button in flash when i click that button a pop up window will appear containing an animation, and that window should be the same size as the animation, i have a code before that i use, but now its not working on flash mx 2004.

heres the code i use before:

on (release) {  
unloadMovieNum(3);  
getURL(“javascript:launchwin(‘teaser2.html’ , ‘newwindow’ , ‘height=400,width=550,left=’+((screen.width-550)/2)+’,top=’+((screen.height-400)/2)+’’)”);  
}

hope someone could fix this code for me, or maybe you have a more tighter code that i could use.

thanks in advance guys!! cheers!!!
