1 Reply Latest reply on Nov 10, 2009 8:54 AM by kglad

    Flash survey/quiz



      I have created a survey with several multipule choice questions using radio buttons. I want the last page of the survey to display results to the user kind of like a Cosmo quiz.  like "50% A." "25% B." "25% C." "0% D." I can't find any info on how to do this with Actionscript. Does anyone know of any tutorials/books/websites that can help?

        • 1. Re: Flash survey/quiz
          kglad Adobe Community Professional & MVP

          there's not enough substance there for a tutorial.


          you should store the user's responses in 4 variables that track the number of responses of that type:


          var tl:MovieClip=this;

          var responseA:Number=0;

          var responseB:Number=0;



          then if the userresponse variable has values A,B,C or D use:




          after each response.


          at the end of your quiz, display:


          responseA/totalquestions*100"% A";

          responseB/totalquestions*100"% B";


          1 person found this helpful