1 Reply Latest reply on Nov 24, 2006 1:54 AM by John27832

    Flash Random Video


      I want to play flash flv video randomly from specific folder. Is there any one who can help me to solve this problem.

      I create a flash flv video player usging flash 8. But this palyer only can play one flv flash video file. I want a player in flash 8 which can able to read flash flv video from one folder romdomly.

      if you want contact with me plz mail me

      Level Ten Solutions
        • 1. Re: Flash Random Video
          Well, I'm not sure about reading from a DIR, but if you use an array with the video names, you could do something like this:

          var videoCollection:Array = ["video1","video2","video3"];

          function playVideo():Void {
          _root.FLVComp.contentPath=videoCollection[random(videoCollection.length)] + ".flv";