Autoplay feature / Continuous play

In this one, I'm going to show you how easy you can add an autoplay function. Let's get started!

Step 1

So, let's open the index.fla file and let's go to line 351. We need to add some code inside this playback function in order for our player to autoplay movies. Let's do it! Paste this code on line 369:

if(current_seconds == seconds){
if(currentVideo < totalVideos){
currentVideo += 1;
playVideo(aVideos[currentVideo].source);
}else{
currentVideo = 0;
playVideo(aVideos[currentVideo].source);
}
}


Well, that's it! Now the autoplay function should work just fine! Let's have a look at the pictures also:


Cool! :)