A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how to play 2 .flv in order

  1. #1
    Senior Member gkbdave's Avatar
    Join Date
    Nov 2000
    Location
    Fort Bragg, NC
    Posts
    304

    how to play 2 .flv in order

    I have two .flv movies that i want to play. One plays, ends, and the next plays, ends..I have the first workign just fine with this code

    stop();
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    ns.play("intromovie.flv");
    rewindButton.onRelease = function() {
    ns.seek(0);
    }
    playButton.onRelease = function() {
    ns.pause();
    }
    var videoInterval = setInterval(videoStatus,100);
    var amountLoaded:Number;

    function videoStatus() {
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    loader.loadbar._width = amountLoaded * 222;
    }


    Is there a way to just add to this code??? Noob to AS

    Thanks..

  2. #2
    Senior Member gkbdave's Avatar
    Join Date
    Nov 2000
    Location
    Fort Bragg, NC
    Posts
    304
    Moved To Flash Video Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center