0 Replies Latest reply on Aug 6, 2008 12:54 PM by stuehler.tech

    trouble playing one swf inside another


      I'm trying to load a SWF and play it inside another SWF.

      Both SWFs are targeted to use Flash Player 8, and AS 2.0

      So, in the parent, I've got code that looks like this:

      var movie_mc:MovieClip = this.createEmptyMovieClip("movie_mc",

      var mcLoader:MovieClipLoader = new MovieClipLoader();

      function onLoadInit(target_mc:MovieClip):Void {

      When I run this in the Flash IDE, it runs beautifully.

      However, when I try to play the movie in a browser, the inner movie
      plays for a few frames, then just stops playing.

      So potentially relevant facts -

      - Both movies are set to run at 30 FPS
      - The inner movie is about 2,700 frames long
      - The inner movie has an audio track embedded on one of the layers
      - The audio track has sync=Stream

      I'm definitely sure the inner movie has stopped playing - I set an
      interval in the parent movie that checks the inner movie's
      _currentframe, and displays it in a text field - sure enough - it gets
      to about frame 25, and just stops.

      Notably - if I remove the audio track from the inner swf, the entire
      thing runs perfectly, both in the Flash IDE and in a browser.

      So, i'm assuming the audio track embedded in a layer, and/or
      Sync=Stream has something to do with this?

      Any advice or insight is MUCH appreciated!