1 Reply Latest reply on Aug 9, 2006 8:59 AM by kglad

    Loading SWF Files

    tommy53
      I have created about 15 animated sequences. Each one is a separate swf file.
      I would like to have the user push a single button, and then have each swf load and play in order. For example, the user hits the play button, swf file #1 is loaded, then, when it is done, swf file #2 is loaded and plays, and so on, until all fifteen swf files have played. Each of these swf's have the same height and width dimension (800 x 600 pixels).
      Many thanks for any help here.
      tommyd
        • 1. Re: Loading SWF Files
          kglad Adobe Community Professional & MVP
          the easiest would be to add a this.loadMovie("nextswf.swf"); statement to the end of each swf and add a loadMovie() statement to your main swf that will load the first swf.

          if you want all your coding in your main swf, you'll need to load your first swf and initiate a loop that checks the play progress of the currently loaded swf. when the last frame has played (in the currently loaded swf) load the next swf and re-initiate that loop that checks the play progress of the currently loaded swf.