Timing Issue

Hi,

I have this media player I built in flash done and it basically loads a video movie and plays it easy enough. The video movie that gets loaded also loads into the player a subtitles movie that get played along with the video movie. I did it that way so I could keep the timing on both the video and subtitles the same.

Now I would like to just have two files that load into the player with a click of the button and have the subtitles movie wait to play until the video movie is fully loaded and ready to go since it will take some time to load it in comparison to the subtitles. I can’t combine the video and subtitles because of the look and feel so my only option is the separate movies.

I was wondering if anyone had a suggestion as to where I need to start regarding action script to make this happen.

Thanks,
Gary

What about something like:

A function that loads both movies, waits for both to be loaded, and then tells each MC to start playing once both are loaded.

Just pass them both a stop() until they’re both fully loaded.

Can I pass that with a click to load from a button?

Yea.

Just create your loader function and then:

myButton.onRelease = function() {
     loaderFunctionName();
}

You could even set up your loader function to take a few parameters:

myButton.onRelease = function() {
     loaderFunctionName(<*movie_URL*>, <*subtitle_URL*>);
}

That way you can reuse the function to load other movies/subtitles.