Skip to main content
Participant
August 9, 2006
Question

Loading SWF Files

  • August 9, 2006
  • 1 reply
  • 232 views
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
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 9, 2006
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.