2 Replies Latest reply on Apr 25, 2006 4:48 AM by sempriny

    problems with this bit of code

    sempriny
      Hello yall

      I am having difficulties with this bit of code. I want to creat an html pop up from Flash, but when I put this in, the Output box comes up with lots of errors.

      Can any of you understand this one?

      getURL ("javascript:NewWindow=window.open('www.yoursite.com/yourpopup.php,'newWin','width=400,he ight=300,left=0,top=0,
      toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus();
      void(0);");


      Thanks

      Sempriny
        • 1. Re: problems with this bit of code
          blemmo Level 1
          Hi,

          there's a ' missing after yourpopup.php:
          getURL ("javascript:NewWindow=window.open('www.yoursite.com/yourpopup.php','newWin','width=400,h eight=300,left=0,top=0,
          toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus();
          void(0);");

          but this shouldn't give errors in Flash, only in the browser. I guess the error in Flash is because there are linebreaks in the string. It has to be all in 1 line, not splitted on 2 or more lines (yep, it sucks, but that's how it is...)

          If it's not that, please post what the output brings up.

          cheers,
          blemmo
          • 2. Re: problems with this bit of code
            sempriny Level 1
            Haha! That's the ticket! The old all the code on one line trick worked a treat, thanks.
            Would you also know how to make this popup launch in the middle of the screen?

            Cheers

            Sempriny