This content has been marked as final. Show 3 replies
place your file names in an array, apply the shuffle method to your array and then load your movies using the shuffled array:
You could use an array, and remove an element on each load using splice, but once the array is empty, you'd need to re-establish it again so use two, one that remains and one that is a copy.
EDIT: here we go again, crap! ... sorry kg lol!!!
you create an array to pot the movies that you played in
you can create a recursive function
var arr:Array=new Array()
//put your code to load this movie
the function generate a random number, verifies if the number is or not in the array, if the number is found in the array it generates another one...