1 Reply Latest reply on Nov 19, 2006 8:15 AM by kglad

    Random Video from Array

    german01 Level 1

      I tried a script posted in this forum, but didn't work. I have a set of 10 short videos. I want to play them one after the other in sequence. Here is the script I used. It only plays two of the 10 videos and then nothing else happens. Can you please check my script and correct it so I can play more than two videos?

      var VideoArray = new Array();
      VideoArray=["Q1.flv", "Q2.flv","Q3.flv", "Q4.flv", "Q5.flv", "Q6.flv", "Q7.flv", "Q8.flv", Q9.Flv", "Q10.flv"];

      var currentVideo = 0;


      var listenerObject:Object = new Object();
      // listen for complete event; play new FLV
      listenerObject.complete = function(eventObject:Object):Void {

      my_video.addEventListener("complete", listenerObject);