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




Multiple Multiple Choice Questions On Same Page



Hi,
I need to make a slide that is not tracked that will have 11 multiple choice questions on it. I am new at Flash and Actionscript 3 and most of the module I am making I am able to figure out. This is the only thing so far I am having trouble with. I see that Flash CS3 has stand alone learning interactions that I could use, but they would each appear on a different page. I really need them to all be on one page. I did see a posting from 2006 that had code set up for this type of thing using XMl but am not sure if it will apply to the current version of the software.
Are there any tutorials on this type of thing? Can anyone point me in the right direction?
Any help would be greatly appreciated.

Thanks
Amanda



FlashKit > Flash Help > Actionscript 3.0
Posted on: 01-03-2008, 03:42 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Multiple Choice Questions
Have almost finished this stand alone presentation. It will be a slide show with review questions at the end of each section. The true/false questions are working perfectly. However I am stuck on the multiple choice questions. Whenever I test the scene, I get a debug of ("Checkbox1" does not exist as a named instance on the stage.) There are a total of 3 multiple choice questions, 8 possible answers in this project. Where do I make changes? The property inspector has individual instance names for each question, the interaction ID in the component inspector has individual names, the instance names have been sequentially numbered "checkbox1" through "checkbox8". Is there a change that needs to be done in the action script?

I have used the multiple choice from the learning interactions library.

Dynamic Multiple Choice Questions
Hi! Another new guy here.

Just wondering is it possible to take in an external text file and use it to create dynamic multiple choice questions from it?

Say there was a few questions (hopefully a varying amount) and each of these would have three answers.

Thanks if anyone replies.

p.s. I'm usung Flash MX 2004.

Radio Buttons - Multiple Choice Questions
Hello all,

I've been having some difficulties getting a clear understanding of how to code radio buttons. I have been creating a training cd for a client of mine and am now stuck at the final chapter...the main quiz.

Does anyone know of a good tutorial (that is free hopefully) that I can take? Or does anyone have any advice. I'm new to the world of action scripting.

Thanks,
BBQ

Multiple Choice Questions Actionscripting Helpplease
Hi all,

I am trying to create a question quiz! where the user is presented with two questions, with four possible answers in each...i want the user to select a choice from A-D in the first question then go to the second question and make their choice for this question also from A-D.

They will then receive a response depending on teh choices they made from teh two questions...anyone know of source files or tutorials that would help me do this!!!!!!!
!
Please help!!!!not great with creating my own actionscript!

thanks

Multiple Choice
I'm trying to make a multiple choice quiz. It doesn't sound to hard, but I have no idea how exactly to do it. I want it so if you click on the answer, it goes to the next question, and then at the end it shows how many you got right. Is that possible? If so, can anyone possibly tell me how?

Multiple Choice
Is there a way to create Multiple Choice actions within Flash 5 without actionscript knowledge?

For example, how would I create the following:

What is the best car in the world:

A: Mustang
B: Corvette
C: Camaro
D: Kia Sophia
E: Firebird

When the viewer doesn't pick the correct answer, they get individualized feedback as to WHY it's incorrect. If they get it right, feedback will be sent back accordingly.

I need to have the multiple choice fully customizable in size as it is to be placed on a small space (230 px by 230 px), so I don't think the Learning Extensions will work.

Thanks...

Steve Dallas
Bloom County, TX

Multiple Choice
Hello,

I have 5 checkboxes (a,b,c,d,e), a commit button and a dynamic text box (test) to print the answer. I use the following code on the button:

on (release) {
set(box, 0);
if (a.getValue()==true) {
box = box+1;
}
if (b.getValue()==true) {
box = box+2;
}
if (c.getValue()==true) {
box = box+4;
}
if (d.getValue()==true) {
box = box+8;
}
if (e.getValue()==true) {
box = box+16;
}
set(test, box);
}

What i want is to have the variable "box" change the value according to what checkboxes are selected (0 to 31), but I only get the answer 31.
What am I missing?

RE: Multiple Choice
Hello there.

Please could someone be of assistance. I am confused as to how i should approach the issues below for a CD-rom job.

This is the scenario:
1. I would like to create 10 multiple choice questions.
2. The script needs to determine what is the most common
answer posted by the user.
3. Once the questions are complete, the user gets sent to a specific section of the CD-rom based on his/her answers.

The key issue here is that the code needs to determine what is the most common answer and send the user to that particular section.

If there is intelligent life out there - please help.

Multiple Choice And XML
Hello there,

I am trying to create a multiple choice question that is fed by an .xml file.

I need both the question and answers to be fed via .xml.

Is this possible?

How?

Thanks for the help ahead of time!!

Multiple Choice Help
I'm trying to put together a multiple choice quiz.

My issue is that there is not one right answer, it is a different type of quiz.

So it might be that:

Question 1:

A = 3 points
B = 5 points
etc.

Question 2:

A = 6 points
B = 2 points
etc.

I have it set up that each question is on a separate frame. I don't remember the code that I have written, it is on my work computer and I am at home.

Each frame works correctly where I set up a variable for each question, i.e.

var score1 (on frame 1, etc.)

So, how do I get it that after the 10 questions I can compile a total score?

I'm just getting started in Flash, so I appreciate patience almost as much as I appreciate sarcasm.

Multiple Choice Question
Hello,

I am building this website
http://www.europaloket.com
I am known with the basic stuff of flash and
actionscript.
Now i would like to make a additional page
where i will ask 10 multiple choice questions.
for example

What is the capital of Belgium
Brussel Antwerp Amsterdam.

the visitor click an answer and goes
on to the next qeustion until the 10 question's
are finished. After that, he will be able to
see his score /10. And if possible also redo
the question that where wrong?
Anybody has any hints for me how i can realize this?

Kind regards
Gino

Multiple Choice Buttons
I'm not sure the most straight forward way to go here.

I am attempting to create a page that has something akin to a paper doll in the center surrounded by pieces of "clothing" strewn about the screen, either as buttons or as symbols with invisible buttons.

When a user clicks on a button/clothing symbol it turns on that symbol in the appropriate place on the figure in the center. So for example you may have 3 pants and 3 shirts and I want to be able to click on one of each and have them appear in place regardless of what the other clothing pieces are.

That would be easy if I was sending the center "movie" to a certain frame with a certain clothing combination, but with multiple other clothing combinations possible I would need a button to access every possible frame combination.

Am I looking at some ifThen mass of code or is there another simpler work around anyone can point me to?

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

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!

Multiple Choice Question
I am not sure what the answer to this is--I would guess that it is A but I am not sure and don't want to get it wrong!!!

Given the following Flash(tm) script exert:

function NamedArray(name)
{
super() ;
this.name = name ;
}
NamedArray.prototype = new Array ;

var a = new NameArray(“Foo”) ;

Which of the following expressions best describes what the super statement is evaluated to? *
(A) a.constructor

(B) a.prototype.constructor

(C) a.__proto__.constructor

(D) NamedArray.__proto__.constructor

(E) NamedArray.prototype.constructor

(F) Array.constructor
Thanks for your wisdom

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

MX- Quizzes- Multiple Choice
Im designing a series of menu structures with a quiz being one of the menus. I created a striclty multiple choice quiz that works perfectly in its own independent .SWF file, but when i call it into the main menu structure,

on (release) {
loadMovie("MultipleChoiceQuiz.swf", "_root.holder");
}

with a holder area on the main menu under the quizzes section.
The quiz loads up, and the welcome page loads up, but when i click to proceed with the quiz it doesnt do anything.
What do i need to do?!

Thank you
JUSTIN

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

Multiple Choice Selections
I'm working an a multiple choice question in Flash MX 2004 and I'm wondering if any of you know if there is a way to toggle on and off a selection.

Meaning. When they select "answer 2" and then "answer 3" they can click on "answer 2" again to make the selection box around it disappear. When they click the done button they will get there feedback. I can't remember how to toggle on and off movie clips with the true and false values.

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!

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.

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

[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.

[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.

[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

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?

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.

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;
}

Making Multiple Choice
I want to make a multiple choice area in a Flash file.
For example, a question, which sock colour do you like best?

The user could click on red, yellow, or black.

I want the Flash page to keep an ongoing tally of how many people chose what colour.
How can you make Flash remember what has been posted on previous visits to the site?

Random Multiple Choice
I would like to know how to produce a multichoice quiz in which the questions and (A, B, C) responses are loaded in randomly and dynamically from a question database.... the thing I can't get my head round is how to randomize the position of the "Correct" response efficiently...

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

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....

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

Multiple Choice Component
I would like to configure an instance of the multiple choice component via actionscript rather than using the component inspector. I see that this is done with other components rather easily. I want to do this because all the text in the quiz needs to be translated into multiple languages, so having it external to the fla is a must.

I have looked at the code for the learning interaction superclass and the code on the component itself, but I have not been able to discover how to address the properties and then give them values.

Thanks for you help!

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.

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.

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

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.

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.

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.

Multiple Choice Interaction URGENT
help please
(this was also posted in general but not answered)


hi
i need to know how to place some multiple choice questions into a swf and then have text pop up if they are right or wrong. can anyone tell me where i could find a tutorial on this or explain how to do this?
thanking you
miffy

Multiple Choice Question Test
Hello all,
Let me tell you what my problem is. I have been following the tutorial on Colin Moock's book "ActionScript: The Def Guide" about the multiple choice question test there is in Chapter 13. I pretty much understood everything, and so I tried to emulate the same code but generate the questions at random. I am managing to create questions at random, and getting the user results, however, when I compare them with the correct answers, the correct answers are not being recorded properly, I think I have something missing in my code. So if anyone can take a look at my code and tell me what is wrong, I would appreciate it a lot!

Thanks and here is my code, I hope it is understandable:-

----------------------------------------------------------------------
// stop the movie
stop();

// ### init main timeline variables
var displayTotal; // textfield for displaying user's final score
var totalCorrect = 0;// number of questions user answered correctly
var userAnswers = new Array();// array containing the user's guesses
var currentTry = 0 ;// number of tries allowed
//var currentQuestion = 0;// number of the question we're on

// ### the Question constructor
function Question (correctAnswer, questionText, answers) {
this.correctAnswer = correctAnswer;
this.questionText = questionText;
this.answers = answers;
}

// ### import the source file containing our array of question objects
#include "Phase1.as"

//Create a random number for the question
function RandomQue(minVal, maxVal){
do {
r = Math.random();//keep pickiing a number until it is not 1.
} while (r == 1);
return minVal + Math.floor(r * (maxVal + 1 - minVal));
}

//create current question
currentQuestion = RandomQue(0,10);

// ### begin the quiz
makeQuestion(currentQuestion);

// ### function to render each question to the screen
function makeQuestion (currentQuestion) {

// clear the stage of the last question
questionClip.removeMovieClip();

// create and place the main question clip
attachMovie("questionTemplate", "questionClip", 0);
questionClip._x = 277;
questionClip._y = 150;
questionClip.qNum = currentQuestion;
questionClip.qText = questionsArray[currentQuestion].questionText;

// create the individual answer clips in the question clip
for (var i = 0; i < questionsArray[currentQuestion].answers.length; i++) {
questionClip.attachMovie("answerTemplate","answer" + i, i);
questionClip["answer" + i]._y += 30 + (i * 15);
questionClip["answer" + i]._x -= 100;
questionClip["answer" + i].answerText = questionsArray[currentQuestion].answers[i];
}
}


// ### function to register the user's answers
function answer (choice) {
userAnswers.push(choice);

if (currentTry == 7) {
questionClip.removeMovieClip();
gotoAndStop ("EndPhase1");
} else {
currentQuestion = RandomQue(0,10)
makeQuestion(currentQuestion);
currentTry ++;
}
}


// function to tally the user's score
function gradeUser() {
// count how many questions the user answered correctly
for (var i = 0; i < 8; i++) {
if(userAnswers[i] == questionsArray[i].correctAnswer) {
totalCorrect++;
}
}

// show the user's score in an onscreen text field
displayTotal = totalCorrect + "/" + 8;
}

function gotoLev2(){
if (totalCorrect >= 5){
gotoAndStop ("Phase2");
}
}
----------------------------------------------------------

Thanks again

Multiple Choice Learning Interactions
Greetings All,

I wanted to ask a simple question to everyone out there with Action Script knowledge.

I am using Flash 5 to create multiple choice learning interactions (found in the common libraries).

When you go to the Clip Parameters Panel, you are instructed to enter the details of the particular multiple choice interaction which is 1 frame long in the timebar above.

I've been trying to create 2 or 3 similair interactions using the instructions found in the clip parameters, which tell you to copy "drag a new instance of the multiple choice movie clip to a new keyframe on the stage.

It then tells you how to activate the "go to next frame button" so once the first multiple choice interaction is finished, the user hits the "next question" button and it then plays the second keyframe.

I have been trying to get this to work for ages and haven't been able to ! From what I understand, there is some editing which needs to be done in the action script in order for this to work properly.

Is there someone who can please help me get this working ? I would eventually like to get around 10/15 of these in one Flash file, but I need to understand how to get atleast 2 working together in order to get 10 or more working together.

I have very little Actionscript knowledge. If there is someone with a example read, or is able to modify the above example file and email it to me to see, I would be very grateful.

Any input/help is always appreciated.

Thanks !

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

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

How To Build A Multiple Choice Quiz?..
I want to create a multiple choice quiz in Flash with 10 questions. Each question will have four possible answers. Each of the possible answers when clicked on will call up a block of explanatory text – three that explain why an answer is wrong, one why it is correct. There would be room for a graphic with each question. At the end of the quiz the user would be given a score out of 10.

Any suggestions how best to do this using Flash MX and, I presume, Actionscript? (BTW I’m a novice when it comes to AS.)

Thank you.

Philip

Multiple Choice - Allowing Only One Selection
Hi there

I have to make a survey in flash, and have almost got it done -

there are 12 quesions, with 5 possible answers for each (5,4,3,2,1), each in its own button. How can I make it so that once a choice has been made, the user cant select more than one from the same question?

I have put each set of buttons in a Mc, so I have 12 movieclips with 5 buttons inside

thanks in advance

gray

How To Create A Multiple Choice Quiz
I've been in Flash for a few years now but never had to do a project like the one I've been handed.

I need to create a quiz. Basically there is a question and multiple choice answers (A-D) As you answer a question you move on with it being marked correct or incorrect. At the end you get results.

I'd like to use the MX components for this as I think it would be easiest.

Does anyone know of any good tuts or examples for me to look at.

Thanks.

I Want To Create A Multiple Choice Quiz...
Hi folks,

I want to create a Multiple Choice Quiz. I know there is a sample one that comes with Flash but I am looking for more than that.

What I want it to do:

- I want my students to be able to login with their name and maybe a password.
- When logged in they will see a list of results from their previous goes of the test beside a button to begin test.
- I dont need them to know if each question is right or wrong as they go along but when the quiz is finished it will give them the result plus how many questions they got wrong etc.
- Also it would be good if they could view the ones they got wrong.
- They would then have the chance to do test again or logout.
- And of course this result with date and time will be logged.


I dont want to use a database so I was this thinking maybe all of this could be done with a text file?

I would appreciate help with this. I am new to flash and I am under pressure to develop this quiz.

Thanks

Daire

Copyright © 2005-08 www.BigResource.com, All rights reserved