1 Reply Latest reply on Nov 21, 2007 5:31 AM by Morten Billcliff

    Runnng external swf Actionscript while in fullscreen mode

    aaronhon
      I am using Flash 9.0 (CS3 Pro). I am coding in Actionscript 3.0

      I have two swf files, both interactive. During playback of the, a mouse event launches the second. I also want the mouse event to trigger a switch to fullscreen mode. The second swf is non-linear and requires user input to jump to the appropriate frame of the timeline. Everything tests and runs perfectly during standard screen mode but whenever I try to load and play the external swf file in fullscreen mode, Flash recognizes the actionscript built into the original SWF but ignores all of the Actionscript (this.stop(), this.gotoAndPlay(), etc.) embedded in the second (external) swf file.

      How can I get external swf files to load with their scripted functionality in fullscreen mode?

      Thanks for the help.

      Aaron

      -------
      The code I am using is:

      // --- this is the code contained in the first swf file
      // function to launch second SWF file
      function movieLaunch(event:MouseEvent):void
      {

      // Sets display mode to fullscreen. With this line present, Flash does not look at any Actionscript in ip.swf
      // If I comment the below line out, the second SWF plays correctly and has full functionality
      stage.displayState = "fullScreen";

      // load and launch second movie (ip.swf) which is located in the same directory
      var request:URLRequest = new URLRequest("ip.swf");
      var loader:Loader = new Loader();
      loader.load(request);
      addChild(loader);
      }

      // Sets the listener for the button that will launch the second movie.
      launchMovieButton.addEventListener(MouseEvent.CLICK, movieLaunch); Text