ActionScript 2.0 :: Removing Correct Answers From Array In Of Random Quiz Questions In Xml Quiz?

Jul 21, 2010

Anyone know where to start thinking about logic for an XML quiz with multiple correct answers, that when the user gets the question right, that question is removed from the random array of questions so we never need to answer it again?

View 0 Replies


Similar Posts:


ActionScript 3.0 :: XML Quiz With Correct Answers - Arranging Within Array

May 18, 2009

I need to put together a really simple flash Quiz for this project I am working on
and I am having a hell of a time figuring out a few key aspects.

1. When working with an array and an xml file, how can I assign the "correct" answer if a user selected the wrong option. Ideally I would love it to say for example " sorry, Egyptians was the correct answer" but would settle for " sorry, 3 was the correct answer" if that is easier to arrange within an array.

2. How can I make it so it marks your first answer and only your first answer (as opposed to how it is now where if you guessed wrong you can keep on guessing until it is right and it will notice the right answer and ignore the wrong)?
Files attached here [URL]

View 7 Replies

ActionScript 3.0 :: Quiz With XML Questions And Answers

Nov 18, 2009

I'm trying to create a simple quiz that picks questions from an XML file, then checks the answer the user enters against the answers stored in the same XML file. Every time you press blue_btn it should bring up a new question. Right now I'm stuck -- it shows only the last question in the XML file, when I enter the right answer it tells me it's wrong, and when I press blue_btn again nothing happens.

[Code]....

View 4 Replies

Professional :: Interactive Quiz - Three Questions That The User Must Answer With Three Possible Answers In Frames 3,4 And 5?

Feb 10, 2010

For my project i am creating a quiz on the Romans. There are only three questions that the user must answer with three possible answers in frames 3,4 and 5.I want to know the code that would help me to allow a Jpeg (an evaluation of the answer given on each frame) to be placed on frame 6 ready for the user to receive feedback for each answer they have given. So when the user selects an answer, the corresponding jpeg to that answer is placed ready on frame 6 for their arrival after they have answered the third question.

View 1 Replies

ActionScript 2.0 :: Multiple Choice Quiz - Tracking All Correct Answers?

Mar 24, 2004

I am currently trying to create a multiple choice quiz. 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. I want the script to be able to track all correct answers despite all qns being on different scenes. Because I want 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 14 Replies

ActionScript 3.0 :: Load Random Quiz Questions From Arrays?

Nov 7, 2009

I am fairly new to AS3 so I am having a go at creating my own game of Who Wants to be a Millionaire?, thought a quiz game of sorts may be simplish. Right now, I am having trouble working out how to load shuffled questions. This is the code I have so far[code]...

View 1 Replies

ActionScript 2.0 :: XML Quiz Array Answers With Different Values?

May 20, 2009

I have this project where I have a quiz template that I am using(as2) and I have everything exactly the way I want it except.that I need for the individual questions to hold a different value from one another.

for example

Question 1 = 10 points
Question 2 = 20 points

so on and so forth

right now I have it so they are an equal percentage of the total (ie 10 questions all are worth 10 points)and I need to change thatunfortunately I am still teaching myself AS but even more unfortunate for me is that I am learning AS3 and this template is AS2 I also have not done much in this vein I have been concentrating more on UI kind of stuff and less on the math side also it makes no difference to me if this is done in AS or XML this file will not be continually updated so it can be a one time deal

View 5 Replies

ActionScript 2.0 :: Randomizing The Quiz Questions?

Oct 18, 2006

I wanted to randomise my quiz questions and to allow all questions to appear but no similar questions should appear twice. I tried to use arrays to do it but I kept having errors.

View 8 Replies

Professional :: Tutorial For Quiz With Multiple Answers?

Jul 10, 2010

I'm looking for a decent, step-by-step tutorial on how to make a QUIZ with MULTIPLE ANSWERS in Flash 8.

View 1 Replies

ActionScript 2.0 :: Making Quiz Where User Type In Answers?

Dec 21, 2011

I am making a quiz what I want to do is: when the user types in the correct answer a tick appears and when they type in a wrong answer a cross appears I want this to happen on a single frame. How to make these type in boxes and how to make the above stuff happen.

View 1 Replies

ActionScript 3.0 :: Dynamic 'quiz' With Questions Being Passed Through Flashvars?

Oct 13, 2011

I want one question to be displayed (just text) and then the user will type in their answer (just text) then they should press a button to move onto the next question to do the same.  The number of questions is not set and depends on how many questions the asker has created, these are passed through flashvars from the backend database.
 
So can I just do this in the one frame with a loop or something going through each param in flashvar ?  Or would a better way be reload the page (it's going on a website) after each question answered passing the flash a single question.

View 3 Replies

Creating Quiz In Flash With Questions Passed Through Flashvars

Oct 13, 2011

I am getting questions from the database (just text) and then passing them to flash via flash vars.I want one question to be displayed then the user will answer (text) and click a button and then the next question will be displayed for them to answer and so on.I am not hoping for overly specific advice but as I am very new to flash/actionscript am just looking for broad advice (or links ?) on how to approach this. Can I do it all from one frame just using actionscript?I think what I am really after (assuming I am not way off track) is if all the questions should be handled at once which I guess will require some kind of loop that listens for some buttonclick event to move to the next question ..... or be 'reloading' the flash movie and dealing with only 1 question at a time.

View 2 Replies

ActionScript 2.0 :: Flash Xml Quiz - Grab A Question / Answers Based On A Variable

Jul 26, 2006

I have an xml doc that has 6 categories that are colors and 4 questions that fall under each category. My question is I'm trying to create a quiz that will grab a question/answers based on a variable between 1-6 from the (6) categories in the xml doc. But the kicker is I want the user to have to choose from a different category if the 1-6 variables are different. And I need to walk down and grab a different question if they have been to blue before or maybe just a random question from the blue or green section.

[Code]...

View 2 Replies

ActionScript 3.0 :: Multiple Choice Questions Quiz - Conditional Answer Checking

Jun 7, 2010

I'm working on a quiz-style piece right now and in short it's several pages of multi choice questions, each rewarding a certain point amount that is added up at the end and given specific results based on the point range scored. (i.e. 10-20 = good, 21-30 = great... etc)

For code I've stopped here:
if (answercheck == 40 - 52){
trace("Feedback: Range 40 - 52");
form.gotoAndStop(3);
form.AnswerTotal.Number = answercheck;
}

Answercheck is the var with the total points accumulated. Form is the mc with the feedback frames based on their point totals. AnswerTotal is the dynamic text box I'm trying to load the exact point total the user acquired into at the end.

View 2 Replies

ActionScript 3.0 :: Make 20 Questions And The All Of The Answers Appear In A Random Order?

Jun 8, 2009

i have a quiz with 20 questions and all of its answers in 2 different arrays. I want to know how i can make those 20 questions and the all of the answers appear in a random order when anyone takes the quiz.

View 6 Replies

ActionScript 2.0 :: Magic 8-ball - Answers Array To Store All The Answers And Then Call Them At Random Into The "answers" Field?

May 24, 2004

I've got an input field called "question" where you can type whatever you want, an ASK button called "ask" and a response field called "answer". Once you enter a question and hit the ASK button I want flash to randomly reply in the "answer" field with YES, NO, MAYBE, DEFINATELY etc.

Do I need some kind of answers array to store all the answers and then call them at random into the "answers" field? Am I on the right track?

View 7 Replies

Professional :: Multiple Choice Quiz - How To Set Correct Answer

Jul 1, 2010

I'm using CS4 and trying to create a new quiz using one of the templates.I can see how to edit it to get only Multiple Choice but I'm stuck at one thing - I can't see where to specify which choice is the correct one.

View 4 Replies

ActionScript 2.0 :: Input Quiz - Check Input Answer Against Random Display From Array

Jan 21, 2009

I am trying to check input answer against random display from array. but sometime it trace not correct when it is correct this is the code i use

[CODE]....

View 7 Replies

ActionScript 3.0 :: Create Flash Quiz Based On Circling The Correct Answer?

Dec 27, 2010

I am quite new to actionscripting and need to create a flash based quiz.The user will have to circle the correct answer in the quiz.I do know of drag and drop function but didn't know how to create circling function.

View 11 Replies

ActionScript 2.0 :: Removing Punctuation From A String In A Fill-in-the-blank Quiz?

Apr 16, 2010

I'm creating a fill-in-the-blank quiz in AS 2.0 and would like to make the comparison between the correct and submitted answer a little less harsh during the comparison. The quiz actually consists of memorizing a sentence or two from say a poem and I'd like to not include any errors of punctuation due to a misplaced or missed comma, exclamation pt or period. as long as the spelling is good then the user should get the correct answer. Below is a little snippet:

[Code]...

View 1 Replies

ActionScript 3.0 :: Music Games Quiz - Flash Random Button?

Sep 2, 2010

i had a project in my software design. it is "music games quiz" this is the scenario.. the music is random.(its working now) but my button (as 4 chooses) is the problem now. why? my question is, how the button would be random? so when the music is playing the button of the correct answer must be there also.

View 2 Replies

ActionScript 2.0 :: Quiz Check Uncheck With Array

Nov 17, 2011

there I�m making a quiz and would like to use an mc as a custom radio button, the thing is when I click an option it "checks" but when I click another mc when that check is active it "uncheck":

[Code]...

View 7 Replies

ActionScript 3.0 :: Multidimensional Array - Make A Quiz Program?

Jan 11, 2012

I guess I'm trying to create a multidimensional array. I'm trying to make a quiz program where each array entry has a: question, 4 answer choices, and the correct answer choice key.I wrote it in ActionScript 2 but I want to convert it to ActionScript 3 and I am lost on how to do something similar.I couldn't find any similar examples to the code I wrote.preciated.

ActionScript Code:
function mulChoice(question, choiceA, choiceB, choiceC, choiceD, correctChoice) {
this.question = question;
 this.choiceA = choiceA;[code]....

View 9 Replies

Multiple Choice Game Containing Questions And The Answers?

Apr 22, 2009

I have a project that i want to make which is a Multiple choice game containing questions and the answers is four pictures when you click on the right answer you move to next question when your are wrong a wrong sign appears i have zero knowladge about flash but i thought this is similar to Geo Challenge in facebook ,,Right ?? what software to download ? any tutorials online ?

View 4 Replies

ActionScript 3.0 :: How To Do A Quiz?

Jan 10, 2010

I have to do a quiz, which will be a random 5 questions from among the 20 I have no idea how to go about doing this, please help.

View 2 Replies

IDE :: Can't Get Results In Quiz

Mar 10, 2007

i made a quiz in flash using actionscript:

At the end I have to sum the answers and show the result to the user but I can't get it.

Here is the code (I'm kind of new to actionscript, sorry if the code it's too long):

Code:
var p1=0;
var p2=0;
var p3=0;

[Code].....

View 5 Replies

IDE :: Quiz With An Action At End?

Mar 10, 2010

I am writing a module and I have a section in this flash file where a quiz comes up and if you don't click on the right answer it tells you to try again. If you click on the right answer it will load the next swf file. But I can't get this last part to work. The quiz is within an xml file.

var current:Number = 0;
var qbox:Sprite = new Sprite;
var quiz:XML;[code]....

So where it says "if(correct) {" on the bottom, I want the file this file to go to the next swf file not say "Correct!".

View 1 Replies

ActionScript 3.0 :: Once The User Clicks Start Again The Questions And Answers Arrays Start From The Beginning, Sort Of Reset Themselves?

Jun 21, 2009

i am making a quiz. My problem is that once the user completes the quiz and wants to start again the quiz is already on the last question. How do i make it so that once the user clicks start again the questions and answers arrays start from the beginning, sort of reset themselves.

View 1 Replies

ActionScript 2.0 :: Make The Correct Answers Appear After 5 Seconds?

Sep 19, 2005

I'm making 8 input boxes with 8 different answers. Users can key in their answers in the input boxes. The order of the 8 answers will not affect their results. However when users get the wrong answers, the wrong answers will be deleted. My question here is, when the wrong answers are deleted automatically, how do i make the correct answers to appear by themselves after 5 seconds? Below is my code that i put on a "check answer" button.

on(release)
{
answers = new Array(8);
answers[0] = "professional selling";[code].....

View 4 Replies

Create A Personality Quiz?

Mar 21, 2009

How I can make a simple personality quiz in Flash? I've been searching for months for quiz/test codes, tutorials, examples, etc...but I can't find one that would work for a quiz with no "right" or "wrong" answer.

Basically what I want to do is have the user click on statements that they agree with, or answer questions that would lead to one of two possible results.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved