Interact With Multiple Flash Video Clips

I am putting together a web demo using multiple Flash Video Clips and need to somehow trigger another clip to play after the clip before it finishes, can someone provide me with some tips on doing this? A link would help too! I am using Flash 8.

Thanks much...

C
LVL 1
clickclickbangAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dushan De SilvaTechnology ArchitectCommented:
How about , loading these movies one after another. You can use loadMovie and unloadMovie with levels. So it will work effcient.

BR Dushan
Dushan De SilvaTechnology ArchitectCommented:
And in Flash 8.0 , you can convert normal movie(avi, mpeg, ..etc) to flv format. Then you can use, flash movie components and , can simply work with movies.

BR Dushan
clickclickbangAuthor Commented:
how do I know when the first movie is finished playing?
krishnaprathabCommented:
This is fairly simple, once you have loaded your FLV into the MediaComponent give the Media Component an instance name of say "myMedia" and you can use a combination of myMedia.totalTime and myMedia.playheadTime to sense the current position of the video and start loading another FLV accordingly.

A action for this would look something similar to this:

var myPlayerListener:Object = new Object();
myPlayerListener.change = function(eventObj:Object) {
    var myPosition:Number = myPlayer.playheadTime;
    var myPercentPosition:Number = (myPosition/myPlayer.totalTime);
    if (myPercentPosition > 90) // When 90% of the video is done start loading another movie
    {
        //load next movie
    }
};
myPlayer.addEventListener("change", myPlayerListener);

Hope this helps !

- KP

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
clickclickbangAuthor Commented:
Thanks for the posts. My project was put on hold, but I'm going to go ahead and award points here. I may post back later if I have some trouble.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.