Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-05-2006, 10:52 AM   #1
loganx
Registered User
 
Join Date: May 2006
Posts: 7
Default HELP with multiple choice quiz

I'm building a multiple choice quiz that gets people opinion on certain things like politics or sport.
The user will choose if the subject makes them feel A.postive B.Negitive or C.not bothered.
How do I make my quiz remember the users choices so at the end of the quiz it will say; you had a negative reaction to (eg.politics, sport, etc..)

can anyone help as this is new to me?
loganx is offline   Reply With Quote
Old 05-05-2006, 01:08 PM   #2
EdKav1
Registered User
 
Join Date: Apr 2005
Location: Durham, NC
Posts: 305
Default

One way would be to save the responses in an array. I'm not sure how you are structuring your fla but on the few of these I've worked on we would create an array to hold the answers e.g.,

var answerArray:Array = new Array();

For a particular question selecting an option (A, B, or C) would set a variable that would be saved when the user clicked a button to move to the next question or to end the quiz. Something like:
Code:
btnNextQuestion.onPress = function(){
      answerArray.[questionNumber] = currentSelection;
      //questionNumber indicates which survey question you are on
      //currentSelection holds "A","B", or "C"
    
}
When the quiz is over you can loop through the answerArray to list responses, calculate totals, etc.
EdKav1 is offline   Reply With Quote
Old 05-05-2006, 01:56 PM   #3
loganx
Registered User
 
Join Date: May 2006
Posts: 7
Default

thanks I'll give it a try but most of this stuff is new to me
loganx is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple choice quiz: different score per question shorty116 ActionScript 2.0 1 01-13-2006 03:48 PM
Multiple choice quiz help BevD ActionScript 1.0 (and below) 1 10-19-2005 11:11 AM
Multiple Choice Quiz kidpablo ActionScript 1.0 (and below) 11 06-02-2004 10:21 PM
Multiple choice quiz. vladc77 ActionScript 1.0 (and below) 2 05-15-2003 01:38 AM
multiple choice quiz larsKonrad Other Flash General Questions 7 03-17-2002 07:13 AM


All times are GMT. The time now is 04:14 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.