Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 ViewsSo i have a code where mouse on button makes movieclip visible and mouse out invisible. Now i want to achieve this mc to fade in/out, not just dissapear or show up in a moment.
_mc.visible=false;
_btn1.addEventListener(MouseEvent.MOUSE_OVER, showMc, false, 0, true);
_btn1.addEventListener(MouseEvent.MOUSE_OUT, hideMc, false, 0, true);
function showMc(e:Event):void
{
_mc.visible = true;
}
function hideMc(e:Event):void
{
_mc.visible = false;
}
Thank you :)
Create a flag variable that gets toggled on mouse click (or whatever you want). Create an Event.ENTER_FRAME event that increases the alpha when the variable is true and decreases when its false.