Interact With Multiple Flash Video Clips

Posted on 2006-03-27
Last Modified: 2010-05-18
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...

Question by:clickclickbang
    LVL 17

    Expert Comment

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

    BR Dushan
    LVL 17

    Assisted Solution

    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
    LVL 1

    Author Comment

    how do I know when the first movie is finished playing?
    LVL 9

    Accepted Solution

    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

    LVL 1

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Adobe Dreamweaver CC 2015

    Adobe Dreamweaver Creative Cloud is used by web designers and front-end developers and allows you to visualize your site in real-time as you code. This course covers exam objectives for the Adobe Certified Associate (ACA) certification.

    Suggested Solutions

    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now