Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Multiple Answers To 1 Question In Flash Quiz?


I have followed Colin Moock's example of the multiple choice quiz (array method). But instead of having only one answer per question, I need to allow the user to have the choice of 2 or even three possible answers to one question. How would i do this?

var correctAnswers = [3,1];
numQuestions = correctAnswers.length;

this is obviously only working properly if there are three questions. I want one question but three anwers..

here's my buttons code:

ActionScript Code:
tick1.onRelease = function(choice) {
    if (tick1.tickBox._currentFrame == 2) {
        answer(1);
    } else if (tick1.tickBox._currentFrame == 1) {
        userAnswer.pop();
    }
}




ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 02-20-2005, 10:08 PM


View Complete Forum Thread with Replies

Sponsored Links:

Quiz With Multiple Correct Answers?
I'm developing a quiz, and I need to have a question with four answers (A, B, C, & D).

Choice D (all of the above) is the correct answer; However, I'd like to set this up so that the user can also check A, B, and C and still be counted as giving the right answer.

Note that they can't just say A or B or C, the only two possible correct combinations are:

D

or...

A B C

Is there any way to do this?

Thanks!!!

View Replies !    View Related
How To Randomize Answers In Multiple Choice Quiz?
Hi, I'm trying to create a multiple choice quiz with Flash MX and XML.
I have the quiz itself working, but I would like the answers to be random so that they are not always in the same order. How can I do this?

Also how can I make it so that if I have for example 10 questions in my XML file, the quiz would ask 5 of them in random order?

My .fla and .xml are attached.
Any help is appreciated.

View Replies !    View Related
Is It Possible- Multiple Choice Quiz W/ Answers AFTER Each Question
Hi All,
Can someone shed some light on this for me? I know how to make a multiple choice quiz w/ the questions, then a score at the end. But what I want to do is give the answer after each question and a small paragraph basically giving more info as to why that answer is correct. I can't seem to do this and my reference book I have for FLASH doesn't really deal with the issue.

Is it even possible?

auntmillyto3

View Replies !    View Related
Quiz Template> Checkboxes> Multiple Correct Answers
Could someone please point out where in the Flash 8 Quiz Template Multiple Choice Actionscript logic, the correct feedback is set only if ALL of the correct answers are selected?

We would like to consider cases where checkbox1 OR checkbox2 is a correct response rather than require checkbox1 AND checkbox2 to be checked for a correct feedback

View Replies !    View Related
Flash Quiz Using Xml For Questions And Answers
What do I need to remove so the questions will be asked in order rather than randomly shuffled each time the quiz loads?

The AS on frame1

// XML Question Loader - Jim Bumgardner
qList = new Array();
nbrUsed = 0;
// This is a recursive function that
// walks thru all the nodes in your XML
// and loads up the ones you're
// interested in into the qList array.
loadNode = function(it)
{
if (it.nodeName == 'question') {
var qSet = new Array();
qSet.q = it.attributes['q'];
qSet.used = false;
qSet.ans_a = it.attributes['ans_a'];
qSet.ans_b = it.attributes['ans_b'];
qSet.ans_c = it.attributes['ans_c'];
qSet.ans_d = it.attributes['ans_d'];
qSet.ans_e = it.attributes['ans_e']; // just in case there are more than 4...
qSet.ans_f = it.attributes['ans_f'];
qSet.right = it.attributes['right'];
qList.push(qSet);
}
else if (it.nodeName == "questionList")
{
// process any questionList properties here
// - there aren't any at the moment.
// Note that the 'questionList' tag is
// completely ignored - this will still
// work without that tag.
}
if (it.hasChildNodes()) {
for (var i = 0; i < it.childNodes.length; ++i)
loadNode(it.childNodes[i]);
}
}
// when this function is called, we're done loading
// - do something with your data.
// Most likely you want to jump to a frame in your movie where you play the game, but I'll just output a few values
function finishInit()
{
trace(qList.length + " questions loaded:");
// determine maximum score
maxscore = qList.length*10;
// randomly shuffle list of questions
qList.sort(function() { return random(3) - 1;});
questionNbr = 0;
gotoAndPlay(2);
}
var myxml = new XML();
myxml.onLoad = function()
{
// initialize array again, in case
// we're calling this twice...
qList = new Array();
loadNode(this);
finishInit();
}
myxml.load("questions.xml");
// A common mistake is to attempt to access the data here. Don't -- it is not loaded at this point
// myxml.load() is an asynchronous function - it returns before it is finished.
// The finishInit() function (above) will be called when the data is ready to go...
stop();

View Replies !    View Related
Flash Multi-Choice Quiz With Tally Of Answers
Hi

I'm relatively new to actionscripting..
I enjoy this message board and all the help immensely.

I was wondering if anyone knew how to
do a global variable that allow myself to do
multi-choice quizzes ( lets say a different one every week)
so that i could reuse my script.

And also a way to tabulate the right and wrong answers?

Any help at all would be greatly appreciated

View Replies !    View Related
Quiz Like Answers
Hi there i was just wondering how in a quiz u would define 'like' answers such as an answer that is '7' but that means that the answer is also be 'seven'.

eg.

_root.variable = random(int(3))+1

if(_root.variable == 3){
question.text = "How many days in a week?"
_root.correct = "7";
}

how would i write the alternaitive answer??

View Replies !    View Related
Quiz ...but Which Allows Combination Answers ?
Hello everybody!
My new project is a quiz for school children.The students have to key in the answers.The answers could vary from student to student.....say for a question on physics.the answers could be 1kg/cm2 or 1kg/sq.cm or one kg/cm2 etc,could anybody suggest a code for validating against more than 1 possible (combination) of answers.Iam not so good in scripting but comfortable with basic actions
Thnking you.
Vinod

View Replies !    View Related
Randomizing Answers In A Quiz.
hi guys ...

i m currently working on your quiz that is posted on
http://www.sephiroth.it/file_detail.php?id=54

there is just 1 question, how do u change the answers from switching
places? .. i mean right now i have them all in ... a,b,c and d but it
is coming out randomly ... how do i get it to display in order ... ?
no random display of answers. but the questions coming out in random is just fine.

thanx in advance guys...

the code actually goes like this :

// Building random answers
function creaNuovoArray(){
delete tempRis;
tempRis = new Array();
}

Object.prototype.nextRisposta = function(){
ranAns = random(domande[ranQuestion][2].length)
for(var i = 0; i < domande[ranQuestion][2].length; i++){
if(ranAns == tempRis[i]){
var prosegui = false;
nextRisposta();
break;
}
var prosegui = true;
}
if(prosegui){
tempRis.push(ranAns);
return ranAns;
}
}


you may download the entire file as well here ..

View Replies !    View Related
Random Quiz Answers
I found a neat Flash quiz that both randomizes the questions and answers.

Original Files - by sephiroth


I converted it from Italian to English (for the most part) and added a few minor scoring functions at the end.

The only issue I'm having now is converting it over to Flash 8 AS 2.
Each time I do, the answers do not cascade down, but stack on top of each other. I need to go to Flash 8 in order to use externalInterface.

Anyone have any thoughts?

I've attached the files for viewing...

Looking forward to some insight!

View Replies !    View Related
Help With Comparing Quiz Answers
Hi there, I was wondering if anybody can help me with a project of mine. I'm learning AS and am stuck on making a quiz.

I'm making a simple quiz that generates questions dynamically from xml, I want to compare the users answers to the 'correct' answer in the xml but I cant quite get my head around it

I've tried to compare the arrays so eventually I can have a score page with feedback for the user, as yet no luck even with the simplest of comparisons.

The trace doesnt seem to work and always shows false, I've tried adjusting the count and entering the next questions answer but no luck yet huff!

Here's my code, any help will be apprieciated

quiz.as


Code:

class Quiz {
private var container:MovieClip;
private var introContainer:MovieClip;
private var xmlQ:TextField;
private var ans:TextField;
private var correctAns:Array = new Array();
private var answer:Array = new Array();
private var questions:Array = new Array();
private var count:Number;
function Quiz(timeline:MovieClip, depth:Number, x:Number, y:Number, w:Number, h:Number) {
introContainer = timeline.createEmptyMovieClip("introContainer", depth);
container = timeline.createEmptyMovieClip("container", depth);
count = 0;
loadData();
buildIntro(x, y, w, h);
buildUI(x, y, w, h);
nextQuestion();
}
private function loadData():Void {
var quiz:Quiz = this;
var myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function() {
var questions:Array = this.firstChild.childNodes;
for (var i = 0; i<questions.length; i++) {
var fl:String = questions[i].firstChild.firstChild;
var qt:String = questions[i].firstChild.nextSibling.firstChild;
var correctAns:String = questions[i].firstChild.nextSibling.nextSibling.firstChild;
quiz.questions[i] = new Question(fl, qt, correctAns);
}
};
myXML.load('questions.xml');
}
private function nextQuestion():Void {
var quiz:Quiz = this;
count++;
if (count>questions.length-1) {
count = 0;
}
var filename:String = questions[count].getFileName();
xmlQ.text = questions[count].getXmlQ();
answer[count] = ans.text.toLowerCase();
questions[count].setUserAnswer(ans.text);
ans.text = "";
trace(questions[count].getAnswer());
trace(answer[count]);
}
private function checkAnswer():Void {
if (answer[count] == questions[count].getAnswer()) {
trace("true");
} else {
trace("false");
}
}
private function buildIntro(x:Number, y:Number, w:Number, h:Number):Void {
var intro:Quiz = this;
var quiz:Quiz = this;
introContainer._x = x;
introContainer._y = y;
var enterButton:MovieClip = introContainer.attachMovie('enterButton', 'enterButton', 1);
enterButton._x = w-enterButton._width;
enterButton._y = h+10;
enterButton.onRelease = function() {
quiz.buildUI();
};
}
private function buildUI(x:Number, y:Number, w:Number, h:Number):Void {
var quiz:Quiz = this;
container._x = x;
container._y = y;
var nextButton:MovieClip = container.attachMovie('nextButton', 'nextButton', 1);
nextButton._x = w-nextButton._width;
nextButton._y = h+10;
nextButton.onRelease = function() {
quiz.checkAnswer();
quiz.nextQuestion();
};
xmlQ = container.createTextField("title_txt", 3, 20, 70, 200, 20);
xmlQ.text = "hello";
var tFormat:TextFormat = new TextFormat();
tFormat.font = "Arial";
tFormat.color = 0xffffff;
tFormat.bold = true;
tFormat.size = 14;
xmlQ.setNewTextFormat(tFormat);
xmlQ.text = "hello";
ans = container.createTextField("ans_txt", 4, 20, 135, 200, 100);
ans.border = true;
ans.borderColor = 0xffffff;
var tFormat:TextFormat = new TextFormat();
tFormat.font = "Verdana";
tFormat.color = 0xffffff;
tFormat.bold = false;
tFormat.size = 11;
ans.setNewTextFormat(tFormat);
ans.type = "input";
}
}
question.as


Code:
class Question {
private var fileName:String;
private var xmlQ:String;
private var userAnswer:String;
private var correctAns:String;
function Question(f:String, q:String, cA:String) {
fileName = f;
xmlQ = q;
correctAns = cA;
}
public function getFileName():String {
return fileName;
}
public function getXmlQ():String {
return xmlQ;
}
public function getAnswer():String {
return correctAns;
}
public function setUserAnswer(userAns:String):Void {
userAnswer = userAns;
}
}
Jenn x

View Replies !    View Related
Quiz Results And Check Answers
This is the AS in the final frame of a 10 question quiz. With each answer from previous frames, it adds 1 to the score (var Score; which is multiplied by 10 at the end) if it is correct, otherwise it doesn't add anything, and it changes the value of AC(#)Correct from 0 to 1 (the # is in relation to the question). That part is working.

However, there was and additional idea to have a 2 frame movie clip, one with a green check, and the other with a red x (to denote correct or incorrect). If the value for the AC(#)Correct was changed to 1, it would move the frame of the related instance (mcA#) to the "correct" frame. However it doesn't seem to be working and they are all remaining on the "incorrect" frame. I'm missing something but it's eluding me. Does anyone have any idea? Thanks a heap!







Attach Code

stop();
//----PRE-RESULTS SETUP----
mcEnd._visible = true;
btnScore._visible = true;

//-------SCORE VAR SETUP-----
var Score:Number = 0;

//-----TALLY SCORE----
txtScore.text = (Score * 10 + "%");

//var ary_ACheck.Array = new Array("A1Correct", "A2Correct", "A3Correct", "A4Correct", "A5Correct", "A6Correct", "A7Correct", "A8Correct", "A9Correct", "A10Correct");
//Yeah, I know, I should have just stuck with the array, but I got too nervous. Shoot me.

var A1Correct:Number = 0;
var A2Correct:Number = 0;
var A3Correct:Number = 0;
var A4Correct:Number = 0;
var A4Correct:Number = 0;
var A5Correct:Number = 0;
var A6Correct:Number = 0;
var A7Correct:Number = 0;
var A8Correct:Number = 0;
var A9Correct:Number = 0;
var A10Correct:Number = 0;

function ShowResults()
{
mcEnd._visible = false;
btnScore._visible = false;
if(A1Correct == 1)
{
mcA1.gotoAndStop("correct");
}
if(A2Correct == 1)
{
mcA2.gotoAndStop("correct");
}
if(A3Correct == 1)
{
mcA3.gotoAndStop("correct");
}
if(A4Correct == 1)
{
mcA4.gotoAndStop("correct");
}
if(A5Correct == 1)
{
mcA5.gotoAndStop("correct");
}
if(A6Correct == 1)
{
mcA6.gotoAndStop("correct");
}
if(A7Correct == 1)
{
mcA7.gotoAndStop("correct");
}
if(A8Correct == 1)
{
mcA8.gotoAndStop("correct");
}
if(A9Correct == 1)
{
mcA9.gotoAndStop("correct");
}
if(A10Correct == 1)
{
mc10.gotoAndStop("correct");
}
}

btnScore.onRelease = function()
{
ShowResults();
}

View Replies !    View Related
Creating A Quiz Type Form With Answers
Hi there!

I have been trying to make a quiz feature for my project.

The quiz will have for example about 10 questions - each with 3 to 4 radio buttons options - where only one choice is selectable

I have tried Flash MX's on tutorial but no joy!

- I need the quiz to add up the scores of the correc answers and display this page at the end:
where the scrore is shown out of 10(or whatever) and the correct answers displayed which the user entered incorrect.

Does any one have any suggestions on how to go about implmenting this feature.
I have looked at a number or sites for tutorials but have not luck.

so if any one has any suggestions or is aware of any tutorials
I will be very grateful

Thanks

Regards
Shana

View Replies !    View Related
Marking Answers To Drag And Drop Quiz
I am attempting to give answers to my drag and drop quiz by using variables. I cannot get the quiz to recognise if the user has dragged each item to the wrong place.

Whereever they drop the item and click 'check answers', my movie clip which holds a tick and a cross on different frames always displays a tick.


Can anyone look at my flash file and confirm what I am doing wrong?

note: At the moment, you can only drag the '1,000' clip to the relevant box.

Thanks,
Mark

View Replies !    View Related
Moving Sprites Based On Quiz Answers
Hi

I need some help with moving two characters onscreen based on the answers given in a quiz. I'm really new with flash, but understand I can do this with instances and the x coordinates of each sprite.

What I want is the character named Victor to move forward on the race track everytime the correct answer is selected, when the wrong answer is selected I want the Bully to move.

Only I really don't know how to implement the coding behind what I have already can anyone help me please.

this is the code I have already behind the go buttons:

Code:
on (release, keyPress "<Enter>") {
if (theChosenOne == 1) {
rightAnswers++;
gotoAndStop("q2");
} else if (theChosenOne == 0) {
gotoAndStop("q1");
} else {
wrongAnswers++;
gotoAndStop("q2");
}
}
and heres a screenshot to help understand what I'm trying to do.

View Replies !    View Related
Radio Button Quiz Help - Storing Answers In Variables
Hi,

I've started to create a quiz which currently has just one question, and 4 radio button answer choices.

I written a couple of lines of code involving a listener that correctly collects the contents of the 'data' parameter for these radiobuttons (3 contain 'wrong' and 1 has 'right' for the correct answer) and I've checked this through a trace command.

However, I get stuck here and can't implement further features of the quiz. I want to be able to tally up the answers at the end, and offer feedback for any questions that were wrong.

I keep trying various techniques e.g. a boolean type variable to hold the answers, an array, but my coding skills are holding me back.

Can someone please give me an idea as to what I should be looking to do to implement such a thing. The file is attached below.

Thanks, your help is much appreciated.

Sukhraj

View Replies !    View Related
Multiple Answers
I'm trying to build a Mutilple choice quiz with single and multiple answers without using the interactions. The problem that I'm having is putting the multiple answers into an Incrementing text field. Thanks for any help

View Replies !    View Related
Multiple Answers?
Hey,

Just wondering if anyone could help me with a little quiz issue. I'm trying to make a multiple choice quiz that has multiple answers ... there are 4 questions and 3 ways of answering:
1. you click on all the right answers and go to the CORRECT frame or
2. you click on 1 or more right answers and go to the ALMOST CORRECT frame and
3. get none of the right answers and go to the WRONG frame

Thanks,
Kev.

View Replies !    View Related
Multiple Input Answers
How do I add multiple answers to 1 input box?

Here is my code:


Quote:




on (release) {
if (ARCID == "ZSVPD"
&& NUMBER == ""

&& ADEP == "FALA"

ADEP Being the Variable and/or object name. FALA being the Answer

&& ADES == "FAKM"
&& SPEED1 == "N"
&& SPEED2 == "0200"
&& REG == ""
&& ARCTYP1 == "BE26"
&& ARCTYP2 == "L"
&& EOBT == "0840"
&& TTLEET == "0210"
&& RFL1 == "F"
&& RFL2 == "200"
&& FLTRUL1 == "I"
&& FLTRUL2 == "G"
&& EQPT1 == "SJ"
&& EQPT2 == "C"
&& ALTRNT1 == "FABL"
&& ALTRNT2 == "FAUP"
&& ROUTE == "JSV G765 BLV K980F"
&& OTHERA == "SAR/En-Route"
&& OTHERB == "EET/FABL0040"
&& OTHERC == "OPR/Blue Aviation Lanseria"
&& ENDURANCE == "0040"
&& POB == "004"
&& DINGHIESNO == "02"
&& DINGHIESCAP == "004"
&& DINGHIESCOVER == "Orange"
&& ACFT == "White and Blue"
&& PIC == "William Blue"
&& PILOT == ""
&& INFO == ""
&& REMARKS == "First Aid Kit (or FAK) and Water"
&& REMARKSPHONE == "(011)6754321"

&& _global.SurvPolar == false
&& _global.varUHF == false
&& _global.varVHF == true
&& _global.varELT == false
&& _global.varF19 == false
&& _global.varDesert == false
&& _global.varMaritime == true
&& _global.varJungle == true
&& _global.varJackets == false
&& _global.varLight == false
&& _global.varFluores == true
&& _global.varUHF2 == false
&& _global.varVHF2 == true
&& _global.varCover == true
&& _global.varPhone == false
) {
gotoAndPlay("correct");
} else
gotoAndPlay("retry");
}

View Replies !    View Related
Multiple Answers Accepted
Hi there helpful people,

just a quickie.

If I have some input text that will allow multiple answers (say two answers, ie "a" or "b"), how do I go about that?

I've tried the code below to no avail and any help would be appreciated:









Attach Code

var input3answer = ("a") || ("b");
trace (input3answer);

onCheck.onPress = function() {

var Answer:Number = 0;

if (input3.text == input3answer)

Answer = 1;

if (Answer == 1) {
gotoAndStop("input4");

} else {
gotoAndStop("input3");
}
};

View Replies !    View Related
Flash Multiple Choice Quiz
This is something i really need to get my head around asap - hopefully someone can point me in the right direction.

I need to create a Flash multiple choice quiz. I'm using Flash MX 2004 Professional and went through the sample quiz files. Trouble is i only need to have multiple choice questions and not drag and drop etc.

I obviously went the wrong way in thinking that i could delete all the unwanted parts of the quiz and keep the multiple choice question only - and copy and paste the frames into new frames(you guessed it - no flash pimp here!).

So what i did was create a new document, and from the Common Libraries> Learning Interaction i dragged 'Multiple Choice' onto the stage in Layer 1.

From the Component Inspector i was able to edit the questions and answers to suit the quiz - here's where i'm stuck - how do i add extra questions to the quiz???

Under pressure to learn this asap so any help is very much appreciated...

D.C.

View Replies !    View Related
Flash Multiple Choice Quiz
This is something i really need to get my head around asap - hopefully someone can point me in the right direction.

I need to create a Flash multiple choice quiz. I'm using Flash MX 2004 Professional and went through the sample quiz files. Trouble is i only need to have multiple choice questions and not drag and drop etc.

I obviously went the wrong way in thinking that i could delete all the unwanted parts of the quiz and keep the multiple choice question only - and copy and paste the frames into new frames(you guessed it - no flash pimp here!).

So what i did was create a new document, and from the Common Libraries> Learning Interaction i dragged 'Multiple Choice' onto the stage in Layer 1.

From the Component Inspector i was able to edit the questions and answers to suit the quiz - here's where i'm stuck - how do i add extra questions to the quiz???

Under pressure to learn this asap so any help is very much appreciated...

D.C.

View Replies !    View Related
Multiple Choice In Flash Quiz Template
I am using the Quiz Template and I would like to have Multiple Choice with radio buttons.
This would be just like the True and False Component, but with a third and fourth choice. Does anyone know how to add a third and fourth choice to the True and False Component?

View Replies !    View Related
I Need To Create A Random Answer Generator With Multiple Line Answers? Any Ideas?
Can anyone help me??? I need to create a random answer generator that when a button is pressed will produce an answer!!! My only problem is the answers will be 5 lines long and I don't know how to do this!!! I can do it with one line but am not sure where to start with 5??? Here is the script that I am using at the mo...

on(release){
ran=math.round(math.random()*10+1);
myTextfield=eval("a"+ran);
}


Cheers!!!

View Replies !    View Related
Flash Actionscripter Needed Asap - Multiple Choice Quiz
Hi. I need someone who can help me finish a flash multiple choice quiz i've built. I need the results of the quiz to give a 'mostly a, b, or c' result. AT the moment I have only managed to get it get one answer to be correct whilst the other two are wrong answers - which is not what is required.

Just need someone who knows their stuff and can help asap, as I have a deadline looming.

Re. costs, we could agree an hourly rate or give your overall estimate of costings for the job.

Please call 07939718110 or email info@etchdesign.co.uk

View Replies !    View Related
How To Create A Quiz With Free Quiz Template In Adobe Flash
This article will demonstrate how to create a simple online quiz, complete with options for feedback, scoring and tracking, using free Flash quiz template. Please ensure you can manage to use Adobe Flash MX, Flash 8, Flash CS3, or Flash CS4 (http://www.adobe.com/products/flash/) before attempting this.

The quiz template is included in Flash MX and above versions, and it is designed to automatically track results and send them to a learning management system configured for your quiz. Furthermore, it should be SCORM and AICC compliant for using in Learning Management System (LMS).

If you're not sophisticated with Adobe Flash editing, you might be interested in the Flash quiz tool Wondershare QuizCreator (http://www.sameshow.com/quiz-creator.html) for rapid development as replacement.

First of all, you can download a 30 day trial version of Adobe Flash from the Adobe's official website (http://www.adobe.com/downloads/).

1. Create a new Flash document choosing the existing Quiz template.
File >New > Templates tab > 'Quiz' Category > 'Modern Photo Quiz_style2 ' Template

2. A fully functional quiz with templates for Drag and Drop, Fill in the Blank, Hot Objects, Hot Spot, Multiple Choice, and True or False, will open.

3. Test the movie
Control > Test Movie

4. Save the Flash document, giving it a name.
File > Save

- Customize Quiz Template

For detailed instructions on how to edit the quiz template to your requirements, learn the official Flash quiz template tutorial at http://www.adobe.com/support/flash/a...quiz_tutorial/.

- Adding A Single Quiz in Flash

You can add any question types as a single quiz (e.g. true or false type) into your Flash document at any time, however these standalone quiz interactions, when used outside of the quiz template, are not designed for SCORM tracking in LMS.

1. If you want to insert a single quiz as learning interaction, you can just do like this:
Window > Common Libraries > Learning Interactions

2. A library of the various learning interactions will open up. Drag the one you want onto the stage.

- Alternative Flash Quiz Solution

As we know, not every user can use Flash programming perfectly to create quizzes. So over the market, there's some rapid quiz authoring tool like
Wondershare QuizCreator (http://www.sameshow.com/quiz-creator.html) to help make Flash quizzes in an easier way.


At last, for more knowledge about using Adobe Flash MX, Flash 8, Flash CS3, or Flash CS4, please refer to Adobe Flash Support Center:
http://www.adobe.com/support/flash/.

View Replies !    View Related
Multiple Choice Quiz.
I am wondering if someone can share a good example of Multiple choice quiz. I am looking for an example of a quiz where one of the questions should have 5 check boxes-(possible answers) where the correct answer is to choose 3 check boxes in one time.

Many thanks in advace

View Replies !    View Related
Multiple Choice Quiz Changes....
I have this quiz thanks to a fellow flash kit user.

http://www.sephiroth.it/file_detail.php?id=54

I wanted change however the grading functionality to show the percentage scored after the quiz is completed instead of after each question.

Is there a quiz out there for Flash already like this?

How hard would it be to move it from php to asp and store the user answers and final results in an access database?

If you're knowledgable and have a sec, please take a look and consult. I'll make it worth your time!

Thank you!

View Replies !    View Related
Multiple Choice Quiz
Hi

I was wondering if you can help me I am trying to setup a Flash Quiz
with result tracking!

But don't acctually know how to do it ?

thanks

View Replies !    View Related
Multiple Choice Quiz
hi,

I need a Multiple choice Quiz(MCQ) by using checkbox. but with out using component. If some one have. Please mail me. I am very thankful for them.

Regads,
Sumit Sethi
sumitsethi_job@yahoo.com

View Replies !    View Related
Multiple Choice Quiz
Hi,

I'm quite crap at actionscripting, and am more into making things pretty I would love some help with my quiz. The quiz script is all working fine, but all I need if that if the users score is less than 10 to goto one frame and above 10, another. The script I currently have is:

stop();
x = 1;
if (count < 10) {
gotoAndPlay("27");
}
if (count > 9) {
gotoAndPlay("26");
}

Taint working, and just keep going to frame 26 regardless of result...

Please help me!

View Replies !    View Related
Multiple Choice Quiz
Hi,

I have created a simple multiple choice quiz for kids (I have followed a tutorial) in which I have created variables which store the answers to the questions. What I'm not sure how to do is at the end of the quiz display the answers back to the users. I thought it might be simply be a case of creating a dynamic text field and putting in the variable name in the var box, but this doesn't work. I've attached the fla so you can see what I've done.

Any help would be much appreciated
Thanks
Bev.

View Replies !    View Related
Multiple Choice Quiz
Good morning
I could do with a bit of help with this one. I have a project where the user has to select the correct answers from a possible 5 . this is an example

which of these is a vegetable? select your answers and click 'confirm'
1: pufferfish
2: carrot
3: boeing 747
4: potato
5: onion

if the user selects 2, 4 and 5 then they are told 'correct' otherwise they are told, 'that's not quite right, the correct answer is.....'

many thanks in advance for any advice or guidance

View Replies !    View Related
[CS3] Multiple Choice Quiz
Hi -

I am following this tutorial and creating a simple multiple choice activity. Could anyone out there help me adopt the following changes or point me in the direction for the info on how to;

Stop the quiz from moving onto the next question automatically, and have a 'next button' that takes the user to the next question.

Enable the multiple choice items to be deselected once clicked, i.e. a second click then deselects the item.

Show a tick or a cross next to each answer, I'm thinking this could be taken from an xml attribute, but I'm not sure how to create a listener (I think thats what you'd do) that would call the attribute and show a bmp tick or cross.


I'm desperate here, so any advice would be awesome.

View Replies !    View Related
[CS3] Multiple Choice Quiz
Please, can anyone tell me or direct me to a decent ActionScript 3.0 Multiple Choice Quiz tutorial... I've tried dozens, - I've even used the Flash inbuilt templates but they only seem to publish to AS 2.0. It has to be AS 3.0

Instead of radio buttons in the multiple choice I'd just like to have text boxes that are highlighted when selected by a user.

each question has it's own feedback string, "correct" "incorrect" plus an additional feedback item - a tick or cross that appears next to the selection. And next button to take you to the next question.

Sounds simple doesn't it, well the internet as much as it is vast is very limited on this ActionScript 3.0 tutorial.

I've lost a lot of sleep over this anyone who can help will be rewarded.

View Replies !    View Related
[F8] Help W/ Multiple Choice Quiz Please
Hi; I'm trying to create a quiz game, questions being multiple choice. I got myself stuck and don't know what to do...

My problem is I have my script essentially like this:
get 3 random numbers (I think there's a chance they may repeat //help please?)
set them as: number[1], number[2], number[3]
add them into an array
set number[4] = 2008 (the correct answer)
add number[4] into the array
(now the problem: I want to know how to jumble the contents in the array so that I can set multiplechoiceA = number[one of the 1-4], remove it from the array, set multiplechoiceB = number[one of the ones still in the array], remove it from the array...and so on to choice D.)

I probably did it a bad way...so help would be greatly greatly appreciated.

Heres the code so far:

Quote:




//
stop();
var my_Date = new Date();
var possibleAnswer = new String();
aryList = [];
// create possible answers
for (i=1; i<4; i++){
trace(i);
possibleAnswer[i] = Math.ceil(Math.random()*300 + 1950);
trace("possibleAnswer[" + i + "] = " + possibleAnswer[i]);
aryList.push(possibleAnswer[i]);
trace("array = " + aryList);
}
possibleAnswer[4] = my_Date.getFullYear();
trace("possibleAnswer[4] = " + possibleAnswer[4]);
arySequence.push(possibleAnswer[4]);
trace("array = " + arySequence);

//heres where I need to assign the possible answers to what letter I want

View Replies !    View Related
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?

View Replies !    View Related
Multiple Choice Quiz
Please, can anyone tell me or direct me to a decent ActionScript 3.0 Multiple Choice Quiz tutorial... I've tried dozens, - I've even used the Flash inbuilt templates but they only seem to publish to AS 2.0. It has to be AS 3.0

Instead of radio buttons in the multiple choice I'd just like to have text boxes that are highlighted when selected by a user.

each question has it's own feedback string, "correct" "incorrect" plus an additional feedback item - a tick or cross that appears next to the selection. And next button to take you to the next question.

Sounds simple doesn't it, well the internet as much as it is vast is very limited on this ActionScript 3.0 tutorial.

I've lost a lot of sleep over this anyone who can help will be rewarded.

View Replies !    View Related
Multiple Choice Quiz
hey basically im a rookie and i've made a quiz but i don't know how to end it any ideas?

var myQuestionsArray:Array = new Array();

for(i=0;i<5;i++) {
var myobject:Object=new Object();
myQuestionsArray.push(myobject);
}

myQuestionsArray[0].question="Who is the Chelsea number 8?";
myQuestionsArray[0].answerA="John Terry";
myQuestionsArray[0].answerB="Ashley Cole";
myQuestionsArray[0].answerC="Frank Lampard";
myQuestionsArray[0].answer="C";


myQuestionsArray[1].question="Where do Chelsea play there home matches?";
myQuestionsArray[1].answerA="Old Trafford";
myQuestionsArray[1].answerB="Stamford Bridge";
myQuestionsArray[1].answerC="Wembly Stadium";
myQuestionsArray[1].answer="B";

myQuestionsArray[2].question="How many times have Chelsea won the First Division/Premiership?";
myQuestionsArray[2].answerA="2";
myQuestionsArray[2].answerB="3";
myQuestionsArray[2].answerC="4";
myQuestionsArray[2].answer="B";

myQuestionsArray[3].question="Who was the most expensive player Chelsea have signed?";
myQuestionsArray[3].answerA="Andriy Shevchenko";
myQuestionsArray[3].answerB="John Obi Mikel";
myQuestionsArray[3].answerC="Michael Essien";
myQuestionsArray[3].answer="A";

myQuestionsArray[4].question="Who was Chelseas player of the year for 2008?";
myQuestionsArray[4].answerA="Michael Ballack";
myQuestionsArray[4].answerB="Joe Cole";
myQuestionsArray[4].answerC="Carlo Cudicini";
myQuestionsArray[4].answer="B";

var whichQuestion:Number = new Number (0);
var score:Number=new Number(0);
scoreBox.text=score.toString();
questionNumber.text=(whichQuestion+1).toString();
questionString.text=myQuestionsArray[whichQuestion].question;
answerA.text=myQuestionsArray[whichQuestion].answerA;
answerB.text=myQuestionsArray[whichQuestion].answerB;
answerC.text=myQuestionsArray[whichQuestion].answerC;

btnA.onRelease=function() {
checkAnswer("A");
whichQuestion++;
nextQuestion();
}

btnB.onRelease=function() {
checkAnswer("B");
whichQuestion++;
nextQuestion();
}

btnC.onRelease=function() {
checkAnswer("C");
whichQuestion++;
nextQuestion();
}
function checkAnswer(myString:String) {
if(myString==myQuestionsArray[whichQuestion].answer) {
score++;
}
scoreBox.text=score.toString();


}
function nextQuestion() {
questionNumber.text=(whichQuestion+1).toString();
questionString.text=myQuestionsArray[whichQuestion].question;
answerA.text=myQuestionsArray[whichQuestion].answerA;
answerB.text=myQuestionsArray[whichQuestion].answerB;
answerC.text=myQuestionsArray[whichQuestion].answerC;
}

View Replies !    View Related
Multiple Answer Quiz
I want to make a program which can display a few questions on one screen - like:

Q1

A1 (radiobutton)
A2 (radiobutton)
A3 (radiobutton)

Q2

A1 (radiobutton)
A2 (radiobutton)
A3 (radiobutton)

Q3

etc....

A1 (radiobutton)
A2 (radiobutton)
A3 (radiobutton)

[SUBMIT ANSWERS Button]

After the user entered one value in each of the questions and pressed "submit answers" he or she should get a standart answer - like:

If A1=3 and A2=1 and A3 = 1 and A4 = 2 [THEN] display "The problem with your answer is you like many people misunderstand the meaning of .... bla bla"

If A1=2 and A2=3 and A3=2 and A4=3 [THEN] display "You understood the main part of the problem, but.... bla bla"

to sum it up, i need the user to get an individual answer depending on how he answers the four standart questions. Is this even possible to make - any suggestions will be appreciated

Kris

View Replies !    View Related
Multiple Choice Quiz
hi, i know this may sound simple but i am making a maths game and want to have a multiple choice element in it which will produce random questions! How is this done, i cant find any tutorials on this?
Thanks

View Replies !    View Related
Multiple Choice Quiz
Hi,

I'm trying to make a multiple choice quiz whereby 10 multiple choice questions are asked at random from a list of 200.

What would be the best way to do this and how? Perhaps loading questions from a database or external text files?

Thanks for your help....

View Replies !    View Related
Multiple Choice Quiz Help
Hi,

I have created a simple multiple choice quiz for kids (I have followed a tutorial) in which I have created variables which store the answers to the questions. What I want to do is display the users answers at the end of the quiz but this is where I'm stuck. I thought it might be simply be a case of creating a dynamic text field and putting in the variable name in the var box, but this doesn't work. I've attached the fla so you can see what I've done.

Any help would be much appreciated
Thanks
Bev

View Replies !    View Related
Multiple Choice Quiz
Please, can anyone tell me or direct me to a decent ActionScript 3.0 Multiple Choice Quiz tutorial... I've tried dozens, - I've even used the Flash inbuilt templates but they only seem to publish to AS 2.0. It has to be AS 3.0

Instead of radio buttons in the multiple choice I'd just like to have text boxes that are highlighted when selected by a user.

each question has it's own feedback string, "correct" "incorrect" plus an additional feedback item - a tick or cross that appears next to the selection. And next button to take you to the next question.

Sounds simple doesn't it, well the internet as much as it is vast is very limited on this ActionScript 3.0 tutorial.

I've lost a lot of sleep over this anyone who can help will be rewarded.

View Replies !    View Related
Multiple Choice Quiz
hi, i am currently trying to create a mulitple choice quiz where i got a quite similar tutorial from this colin moock website. alright, what i want to do is this -

i want to create a multiple choice like this, where user click the answer and they will be linked to a feedback page, telling them what is wrong with their answer. Then they can click an "OK" button to proceed to the next scene where there will be the next qns. the reason why i am not putting all in the same scene is because i need to do up a different scenario for each of the qns. if i were to have ten qns in one scene, i was told it is "no good" by my lecturer. at the end of the ten qns, there will be a grading of points.

this is my problem :
i want the script to be able to track all correct answers despite all qns being on different scenes. because i wan the grade to show at the evaluation scene. is it possible to capture the answer user has clicked on, store to the array, store in another array as one point if it is a correct answer and click next to go to the next scene for the 2nd qns, not next frame.

View Replies !    View Related
Multiple Choice Quiz
hi,

I need a Multiple choice Quiz(MCQ) by using checkbox. but with out using component. If some one have. Please mail me. I am very thankful for them.

Regads,
Sumit Sethi
sumitsethi_job@yahoo.com

View Replies !    View Related
Multiple Choice Quiz
What up.

I'm using the quiz template supplied by Flash. I'm trying to create a multiple choice quiz, but I don't want the user to be able to select multiple answers, just one. I thought about using radio buttons instead, but I'm not sure how to customize the pre built quiz components.

Is there a way that when the user selects one answer, he/she cannot select another. And if they change their answer, the previously selected answer would be deselected. Hope that makes sense.

Thanks for the help.

View Replies !    View Related
Multiple Choice Quiz
hi, i am currently trying to create a mulitple choice quiz where i got a quite similar tutorial from this colin moock website. alright, what i want to do is this -

i want to create a multiple choice like this, where user click the answer and they will be linked to a feedback page, telling them what is wrong with their answer. Then they can click an "OK" button to proceed to the next scene where there will be the next qns. the reason why i am not putting all in the same scene is because i need to do up a different scenario for each of the qns. if i were to have ten qns in one scene, i was told it is "no good" by my lecturer. at the end of the ten qns, there will be a grading of points.

this is my problem :
i want the script to be able to track all correct answers despite all qns being on different scenes. because i wan the grade to show at the evaluation scene. is it possible to capture the answer user has clicked on, store to the array, store in another array as one point if it is a correct answer and click next to go to the next scene for the 2nd qns, not next frame.

View Replies !    View Related
AS Multiple-choice Quiz
I need some help again. I'm trying to make a multiple choice quiz. A question has 3 possible answers. I have two dynamic textboxes on stage. One, called answer tells the student if the answer is right or wrong, and why. The other, called score has a message in the beginning that says, You have 0 out of 8 answers correct. I can make the number increase by one for each correct answer, but if the student kept clicking it, it would have recorded a correct answer each time. To eliminate that, I tried to follow the code in a tutorial I found. This is the code I put in the first frame:

Code:


nmbr = 0;
score = "You have " + nmbr + " out of 8 correct.";
first1 = 1;



This is the code I put on the correct answer button:

Code:


on (release) {
_root.answer="That's right.";
if (first1 == 1){
nmbr = nmbr+1;
_root.score="You have " + nmbr + " out of 8 correct.";
first1 = 0;
}
}



It is supposed to ensure that a correct answer button can only be used once. That part works, but the number in the "You have xxx out of 8 correct" doesn't change. I'm sure I'm making some stupid mistake but I can't find it. Can someone help? Thanks.

View Replies !    View Related
Multiple Choice Quiz?Puzzled
Hi Everybody,
I am Looking for a code for a multiple choice quiz.
The questions and answers will be loaded from text file (not a problem).
But the problem is more than one options are correct.
Please help. I am completely puzzled with the puzzle

If you know how to create an array from a text file. That will solve my purpose

Regards
Dabz

View Replies !    View Related
Need Multiple Choice Quiz Component
I read somewhere that a multiple choice quiz component exists, but my research hasn't yielded anything. Any ideas?

Thank you.

Philip

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved