vendredi 14 avril 2017

Please help me with pop up button (actionscript)

so i want to make after i clicked all my buttons and disappear,and there's a button popup so i can proceed to next scene. this is my current AS codes:

    addEventListener(Event.ENTER_FRAME, fadeOut);
}

function fadeOut(event:Event):void
{
    var a:Number = myButton.alpha-0.05;
    if (a<=0)
    {
        a = 0;
        removeEventListener(Event.ENTER_FRAME, fadeOut);
    }
    myButton.alpha = a;
}

thanks in advance

Aucun commentaire:

Enregistrer un commentaire