Autohide feature

In this one I am going to show you how make the controls panel autohide.

Step1

Alright! Let's open the index.fla file and let's click on the controls_mc movieclip. Now press F9 to open the AS panel and let's paste this code inside:

onClipEvent(mouseMove){
yval = _ymouse;

if( yval >-50 )
{
this.alphaTo(100,1,"easeOutExpo");
}
else {
this.alphaTo(0,1,"easeOutExpo");
}
}




Step2

Ok! It works now but we gotta do one more thing. We gotta hide our controls_mc before we listen the mouse and make it reappear. So let open our actions and let's paste this code on line 20:

controls_mc._alpha = 0;



That's it! Now we got that cool autohide feature ;)