In this one, I'm going to show you how easy we can add a SlowMotion play feature to this cool player. Anxious? Let's get started!
So, let's open the index.fla file let's go to the library (Ctrl+L if not visible) and let's double-click the controls_mc movieclip. What we need to do is create 2 buttons that will activate/deactivate our slow-motion play feature. So, I created two simple text buttons: slowmo_btn (name it's instance the same) and normalmo_btn. After creating them, put the buttons on top of each other because we will hide them.



Let's go back to scene 1 and add some actions!

Now let's open the AS panel (F9) and let's go to line 20. Copy and paste this code on line 20:
playNormal = false;
slowMotion = false;
controls_mc.slowmo_btn._visible = true;
controls_mc.normalmo_btn._visible = false;
Ok, now let's go to line 282 and let's paste this code there:
// SlowMotion play button
controls_mc.slowmo_btn.onRelease = function(){
this._visible = false;
controls_mc.normalmo_btn._visible = true;
if (!slowMotion && !playNormal) {
ns.play();
paused = false;
clearInterval(slowM);
slowM = setInterval(ss, 50);
soundHolder_sound.setVolume(0);
} else {
paused = false;
clearInterval(slowM);
slowM = setInterval(ss, 50);
soundHolder_sound.setVolume(0);
}
slowMotion = true;
}
// Normal play button
controls_mc.normalmo_btn.onRelease = function(){
this._visible = false;
controls_mc.slowmo_btn._visible = true;
if (!slowMotion && !playNormal) {
ns.play();
paused = false;
slowMotion = false;
updatevolume();
}
if(slowMotion)
{
paused = false;
slowMotion = false;
ns.pause(false);
clearInterval(slowM);
updatevolume();
}
playNormal = true;
}
// start/stop function
function ss(){
if(!paused)
ns.pause();
else
ns.pause(false);
paused = !paused;
}


That's it! :)