Forum Moderators: open

Message Too Old, No Replies

Need Help on Flash Quiz!

Flash Quiz

         

Stina

10:29 pm on Feb 23, 2006 (gmt 0)



I've made a flash quiz and I want to get the continue button to be disabled until they answer the quiz... If anyone can help it will be much appreciated. I need this done asap so Im begging! If you need me to send the fla, I can do so.

dareRock

2:32 pm on Feb 28, 2006 (gmt 0)

10+ Year Member



since your asking this question, im assuming a certain experience level which would lead me to believe, each quiz question is on a seperate frame in the main timeline. Once a quiz question is answered, you move to the next frame (next question). I am further assuming that the continue button should be disabled between questions, and once a question is answered, it becomes 'active', so they can move on to the next question.

If so, and as always, there are numerouse ways to accomplish this.

you could....
set a global var like

_global.continueButtonLocked = true;

in the first frame of you movie, before an instance of the continue button mc is generated.

Then, after each question is answered, place the code

_global.continueButtonLocked = false;

as the last line of code in your question handler function - the action you do, once a question has been answered - prolly your method for recording answers.

Then, on your actual continue button, place somehting like this

on (release){
if (_global.continueButtonLocked == false){
// code to go to next question

// set the lock to true for next question
_global.continueButtonLocked = true;
}
}

again, this is just one way, and honestly not the way i would do it, but should display the simple methodology behind such.

hope that helps and good luck with the project