hi,
i’m a newbie and i need help on actionscripting. i need to disable prev/next buttons while the mc is playing. after finishing, the buttons are enabled.how to detect that the mc has finished playing? i’m so useless when it comes to scripting. (i’m using as 3).
here’s what i’ve got so far:
function NextClick(e:Event = null)
{
previousBtn.alpha = 1;
if(thisFrame < maxFrames)
{
thisFrame++;
content1.gotoAndStop(thisFrame);
}
else
nextBtn.alpha = 0;
Finish();
}
}
function PrevClick(e:Event = null)
{
nextBtn.alpha = 1;
if(thisFrame > 1)
thisFrame--;
content1.gotoAndStop(thisFrame);
if(thisFrame <= 1)
previousBtn.alpha = 0;
}
else
{
previousBtn.alpha = 0;
}
}
:puzzle:
help appreciated. thanks.