Skip to main content
ropeGun
Inspiring
August 21, 2006
Answered

MovieClipLoader - end of play flag

  • August 21, 2006
  • 3 replies
  • 284 views
Hello all,

I am making a movie slideshow viewer with sound. I would like the functionality to be similar to a self-playing still image slide viewer, but with each "movie slide" being a small SWF movie with sound. Each of these individual "movie slides" varies in length (time).

My plan was/is to create a "master.swf" which uses the MovieClipLoader class to load in each of the individual "movie slide" SWFs (which would be named "slave_0.swf", "slave_1.swf", "slave_2.swf" etc...). The problem with this method is that I do not know how to have my loaded SWF movie slide (slaves) "tell" the "master.swf" file that, ok, I have loaded and played my entire timeline, so it's ok to load up the next slave. Is there a nice way to have the slave (loaded via MCL) tell its master that it has finished playing its timeline and that the master now needs to bring in the next slave?

Or, is it better to stream all of my SWF's into FLV files and use a NetStream class?

Any info would be very much appreciated.

-john
This topic has been closed for replies.
Correct answer kglad
1. without requiring a loop:

3 replies

kglad
Community Expert
Community Expert
August 22, 2006
you're welcome.
ropeGun
ropeGunAuthor
Inspiring
August 22, 2006
Many thanks! Once again, I am humbled by the response from this community. It's so cool that people take the time to help others. Now I need to start giving back...

Thanks for your help, kglad!

-john
kglad
Community Expert
Community Expert
August 21, 2006
not via the mcl.

but you can, in the last frame of each slave, place a function call back to the master that lets the master know the last frame has played. or you can initiate a loop in the master that continually checks the play-progress of the slave.
ropeGun
ropeGunAuthor
Inspiring
August 21, 2006
> but you can, in the last frame of each slave, place a function call back
> to the master that lets the master know the last frame has played.

How would this function in the slave's last frame look? Something that just sends a variable back up to the master, or what?

> ...or you can initiate a loop in the master that continually checks the play-progress of the slave.

How would this loop look? Some sort of OnEnterFrame deal?

Thanks for input thus far -- appreciated!

-john

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 22, 2006
1. without requiring a loop: