0 Replies Latest reply on Jan 5, 2008 10:12 AM by lou_bra

    Popup java from flash

    lou_bra Level 1

      I have been trying to configure a popup window location from flash movie.

      It works perfect at server (popup opens and loads a jpeg in that) and there is no problem concerning the window, but the location I want it to appear.

      I'm using the attached code, but by that way, I can control only the location the popup opens in relation to my page space, not in relation to any screen space.

      What I want is this popup to open in the center (and middle) of any screen or page size. Is it possible? I have found another page who makes it work. the code presnt in the html is:

      <script language="JavaScript">
      function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v2.0
      var myLeft = (screen.width-myWidth)/2;
      var myTop = (screen.height-myHeight)/2;
      window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+m yHeight);

      I just dont know what to use in my fla though.

      Thanks a lot for any help,