1 Reply Latest reply on Jan 26, 2009 1:11 PM by kglad

    Open a pop-up window from flash.

    juanmiglesias
      hi i have some issues with a page im doing.

      1. i have an intro.swf that have 3 buttons, each one loads an external movie inside itself.
      loadMovie(" http://www.url.com/test.swf", "cont");
      stop();
      it works fine.

      2. then inside test.swf i have others buttons opening a new window using javascript:
      on (release) {
      getURL("javascript:NewWindow=window.open(' http://www.url.com/testpage.html','1','width=500,height=550,left=0,top=0,toolbar=No,locati on=No,scrollbars=Yes,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
      }
      3.also i have some get url _blank buttons inside test.swf

      here comes the weird part, its related with the pop-ups using javascript. when i built it for the fisrt time it opened in firefox and explorer 6 without any issue, then in other computer it didnt open the popup at all.
      right now i cant make it work.

      i begin testing the swf outside by itself, not loading it from "cont" in intro.swf, and it worked i all computers and browser i try it.
      so i think the problem comes when i call and load the test.swf inside the intro.swf
      do i have to do something im missing? levels? special scripts on intro.swf?.
      intro.swf is composed like this:

      - first frame stop (movie clip with intro images)

      - button 1:
      on (release) {
      gotoAndPlay(4);
      }

      - frame 4:
      unloadMovie("cont");
      gotoAndPlay(4);

      - frame 5:
      loadMovie(" http://www.url.com/test.swf", "cont");
      stop();

      "cont" is a movie clip with a frame for test.swf, doesnt have any actions within its timeline.

      can somebody help me.
      thanks.