I’m trying to create a loop of some kind. I haven’t done these before and I’ve tried searching the forum, but I’m still stuck. Not to mention, I still don’t understand the difference between a for, while, and do loop, but I will tackle those later.
For now I have several buttons that need to be clicked before the user can proceed. I am trying something like this:
on a mc I have the following:
onClipEvent (load) {
counter = 0;
}
onClipEvent (enterFrame){
if (counter >= 5) {
next_bttn.enabled = true;
}
}
on each button:
on (release) {
counter++;
}
Am I heading in the right direction?