This function is attached to the quiz button. When clicked, the quiz will be set into motion, a string will be randomly selected from the array (populated by the XML file) and will be displayed.  The next function is a called when the user clicks on the exit quiz button.  This allows the user to return to the default mode of entering his or her own text and seeing the word fingerspelled.  The last function allows the user to see the last word spelled out again, whether in quizMode or not, without affecting the score of the quiz.
         
            /*
            * Randomly select an index in the array and then display the fingerspelling of the word
            */
            function quizListener(e:MouseEvent):void
            {
                if(speedSelected)
                    {
                        myText.text = "";
                        quizIndex = Math.random()*10;
                        inQuiz = true;
                        newWord = true;
                        doWork(quizArray[quizIndex]);
                    }
                else
                    instruct.text = "Please make sure that you have selected a speed.";
            }

            /*
            * Exit quiz mode
            */
            function exitQuizListener(e:MouseEvent):void
            {
                debug.text = "";
                myText.text = "";
                instruct.text = "Please input word to spell."
                inQuiz = false;
                quizCounter.reset();
                numCorrect.text = "Correct: ";
                numWrong.text = "Incorrect: ";
            }
            /*
            * Repeat the last word signed
            */
            function repeatListener(e:MouseEvent):void
            {
                if(word != "")
                    doWork(word);
            }