4 Replies Latest reply on Sep 2, 2007 10:13 PM by kglad

    open new window using javascript in flash

    braulio956
      what is wrong with the following? I keep getting the 3 errors below. I have checked and rechecked but can't find my mistrake.

      on (release) {
      getURL("javascript:newWindow=
      window.open(' http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress.html','popper1',
      'width=425,height=300,scrollbars,resizable');
      newWindow.focus(); void(0);");
      }

      Errors are below:

      **Error** Symbol=contact, layer=Layer 1, frame=1:Line 2: String literal was not properly terminated
      getURL("javascript:newWindow=

      **Error** Symbol=contact, layer=Layer 1, frame=1:Line 3: ')' or ',' expected
      window.open(' http://websitemedia.net/playground/ferrioni/sandbox/ferrioniaddress.html','popper1',

      **Error** Symbol=contact, layer=Layer 1, frame=1:Line 5: String literal was not properly terminated
      newWindow.focus(); void(0);");

      Total ActionScript Errors: 3 Reported Errors: 3