Pop up windows

Hello all, I have a small question:

I’m using pop up windows on my flash site and I want them to have a fixed size.
It worked good with CS2… not anymore :crying:

I have this code on my html page (where’s the basic flash)

<script language="javascript">
function openBrWindow(theURL,winName,w,h,scrollbars) 
    { 
      LeftPosition=( screen.width)?(screen.width-w)/2:100;
      TopPosition=(screen.height)?(screen.height-h)/2:100;
 
      settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbars+',location=no,directories=no,status=0,menubar=no,toolbar=no,resizable=no,address=no'; 
      URL = theURL;
      window.open(URL,winName,settings);
    }

and this is what I have on my buttons (I guess this must be wrong) :q:

[COLOR=green]var request:URLRequest = new URLRequest(“javascript:openBrWindow(‘http://www.google.com’,’_new’,‘1020’,‘668’,‘no’)”);[/COLOR]
[COLOR=green]navigateToURL(request, “_blank”);[/COLOR]

Any suggestions?