Help, I am trying to find a way to delay code placed on a button. The code is executed when a learner presses it and makes a specific movie clip appear. At the same time, this code checks to see if the other movies have been viewed (which is required) and if so, goes to the finished keyframe.
The problem with this is, the last movie clip goes too quickly because the code immediately executes sending the learner to the last “Finished” frame. I am trying to find a way to either use a setInterval or something else to delay the execution of this last bit of code allowing the learner time to view it. Any help would be greatly appreciated.
Here is what I have placed on each of the movieclips:
on (press) {
gotoAndPlay (“Notified_What”);
this.chk_15._alpha=100; //this is a movie clip which appears
if (this.chk_1._alpha==100 && this.chk_2._alpha==100 && this.chk_3._alpha==100 && this.chk_4._alpha==100 && this.chk_5._alpha==100) //this checks the other movie clips to see whether or not they have been viewed and then goes to the next code if True
gotoAndPlay (“finished”);
}