ActionScript 2.0 :: Quiz Game Where Answer Revealed After 3 Attempts

Apr 11, 2010

Basically I want to create 6 questions with input boxes next to them for the user to inset their answer. I want them to try three times and then if not correct the answer is displayed for them. In the box with a little description next to it.

Question: How many sides as a square
(answer in the box) = 4
(desc to side of box says) = A square has four equal sides.

View 3 Replies


Similar Posts:


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

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 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 :: Create A Simple Quiz Which Adds Up Points Depending On The Answer Selected?

Oct 21, 2010

I'm looking to create a simple quiz which adds up points depending on the answer selected.where to read about creating something like this?

View 10 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

Professional :: Leaving A Red "X" Next To An Incorrect Answer In A Quiz

Oct 5, 2010

If you hit a button I want a red "X" to appear for one second.

As it is - the red "X" appears for a very short time only while the mouse is being clicked.

Flash CS4 or CS5

View 1 Replies

ActionScript 2.0 :: FMX Game - Adding Sound For Wrong And Right Answer?

Apr 22, 2005

Any tutorials on adding right and wrong sounds to a game? Im making this game where on a wrong answer there is a wrong sound and on a right answer a right sound! How to get the code to do this!

View 1 Replies

ActionScript 2.0 :: Trivia Game - Flash Fade Out One Wrong Answer At A Time?

Mar 28, 2007

I am having a problem with a little trivia game that I am in the process of developing. What I am trying to do is have flash fade out one wrong answer at a time. All questions are being pulled from an XML file that has hundreds of questions. Keep in mind that the correct answer will not always be in the same spot. I also have it so that one question fades into another after a specific time. Here is the code

Code:
System.useCodepage = true;
//
function loadXML(loaded) {[code].....

View 8 Replies

ActionScript 2.0 :: MX Simple Quiz Game?

Dec 12, 2003

I have developed a simple quiz game, but im having a slight problem with it.I have a variable set to myScore=0

Everytime you get a right answer it should increment 2points But when you get all 3 answers correct i get a final score of 4points

View 2 Replies

ActionScript 2.0 :: Timer For Quiz Game?

Aug 23, 2005

I have designed a flash-based quiz for a training program. they've requested to have a timer that runs throughout the movie to add pressure and action to the game and also to display their time at the end.

View 2 Replies

ActionScript 3.0 :: Make A Quiz Game On Flash Cs4?

Jul 7, 2011

" What does FPS stand for?"Below it, I have three potential answers:

A) Felt Pen Stimulator,
B)Fries Pickles Saurkraut,
C)Frames Per Second.
 
As you all (Hopefully!) know, the last answer is the correct one.What would I type in the Actions box so that when you click the right answer, it takes you to the next question,but when you click the wrong answer, it takes you to a game over screen? (Please, PLEASE make sure your code works before you tell me!)

View 2 Replies

ActionScript 2.0 :: Flowchart Quiz Game For Flash MX?

Aug 22, 2003

Im am completly baffled as to how go about creating this flowchart type game. If you look at the gif example i have attached the way this works it that the user will click on b1 and then has to click on b2 for it be correct. If the user gets it right the line will become highlighted. If not a number gets added to the attempted clicks score:

What i want to happen is that when the user has linked the boxes from b1 to (b2 - b5), i want to disable b1, since the user has made all the selections.

How would i go about doing this? I tried using true false statements and adding numbers each time one of the buttons was clicked. But it all went horribly wrong. It must be a simple answer, but im just to baffled at the moment to figure it out.

View 12 Replies

ActionScript 2.0 :: Create A Text Input Quiz Game?

May 28, 2009

I'm trying to create a text input quiz game.In frame 1, I have the actions:

stop();
answer = "";

On my stage I have a graphic symbol which contains a question. I have my blank input box, set to Single Line, Lower case Only. Variable is answer and maximum characters is 18. NO instance name.An Enter button , No instance name, with the attached code:

on (release, keyPress "<Enter>") {
if (answer eq "sun" or answer eq "the sun") {
gotoAndPlay("win");

[code]....

Everytime I enter the words sun or the sun, I get sent to the "wrong" frame instead of my "win" frame.

View 1 Replies

ActionScript 3.0 :: Get An Answer From Input Text Field And Compare It To The Correct Answer?

Jul 8, 2010

I am trying to get an answer from Input text Field and compare it to the correct answer.here is how my code look like:

//I have a confirm button here
confirm_button.addEventListener(MouseEvent.CLICK, ConfirmFunction);
//I have a correct answer as a String here
var correctans:String = "July";

[code]....

This will check if correct answer contains words in the answer from input text field.But that will result on if I key in "July is great", it will still link to the correct answer frame instead of wrong answer frame.I want the answer to be exact same as the correct answer.

View 4 Replies

ActionScript 2.0 :: Button Is Pushed A Answer Is Displayed And On The Answer Frame?

Aug 27, 2010

I have a grid with 12 movieclip buttons. When a button is pushed a answer is displayed and on the answer frame, there's a button "click for more information".

That button points to information in a frame within the mc button. However, when I test it all the buttons on the root timeline appear on top of this information, covering it up.

Also, when you move the mouse while in this "further info" area, it disappears

View 1 Replies

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

ActionScript 2.0 :: GALLERY: ScriptNoob Status Re-Revealed?

Mar 13, 2006

I searched and found one that seems like it will fit the bill. I've since lost the link, but I'm still digging and can hopefully find and post if it winds up being necessary.There's a function in the gallery that calls and moves both a mask/transition for the images and thumbs AND for the preloader bar. I love the fade in and out, but cringe at them moving.I've tried replacing values in the code, but I'm obviously doing something wrong, because I either break it (nothing loads) or the movement remains.

Here's the script:

[code]...

View 6 Replies

ActionScript 2.0 :: How To Make Login Sequence With Three Attempts For User

Apr 11, 2003

I have tried to make a login sequence where a user gets three attempts, tries. And then is given a non authorization message.

View 7 Replies

ActionScript 3.0 :: Slide Over To The Right (being Revealed) When Clicked On And Then Retract When Another Has Been Chosen

May 27, 2010

I have 3 panels that are on top of each other. (panel1, panel2, panel3) I've attached an image of what my flash looks like and an example of what I want it to do. I need them to slide over to the right (being revealed) when clicked on and then retract when another has been chosen.

View 2 Replies

ActionScript 2.0 :: Loads In An XML File, Then Attempts To Call Another Function?

Mar 9, 2005

have this method within a class. It loads in an XML file, then attempts to call another function. For some reason however, the loadXML() does not execute. If I put a trace right before it, the trace executes. If I take that function out of the onload, it executes.

private function openXML (URL:String) {
var xmlData:XML = new XML();
xmlData.ignoreWhite = true;

[code].....

View 1 Replies

ActionScript 3.0 :: Add Mask - Text Revealed When User Click Image

Jul 22, 2009

Eventually I would like it to show our projects along a horizontal axis, when the user clicks an image additional images and text is revealed. At the moment I have got the horizontal axis working with images loading in and separating into each project. Now I am trying to code it so that for every project a mask is loaded in with the height of the mask equaling the length of the pictures (which I think may need me to restructure my code). So that only the first image is shown.

The important code for this is:
function processXML(e:Event):void{
var myXML:XML = new XML(e.target.data);
xPos = 0;
yPos = myXML.@YPOSITION;
thumbWidth = myXML.@WIDTH;
thumbHeight = myXML.@HEIGHT;
[Code] .....

I'm not sure if i need to restructure the code so that for every project in the xml file it inserts the images of that project into a new movieclip, not sure how to do that though.

View 1 Replies

ActionScript 3.0 :: Errors In Making Attempts To Read File After Executing Remote Services?

Feb 2, 2009

I have a snippet as the following:

private function clickHandler3(event:ItemClickEvent):void {
switch(String(event.index)){
case "0":

[code].....

View 2 Replies

Answer To Remain On The Screen?

Sep 2, 2010

I have 12 movieclip buttons which each contain a question. When you click on one, the answer appears. I need the answer to remain on the screen. On that same frame, there's a button for "more information".When that is selected, it goes to another frame within the mc, and more info appears. However, it is covered up by the other 11 buttons from the main screen

View 2 Replies

ActionScript 3.0 :: How To Best Keep Track Of Answer Count

Sep 17, 2010

I have a quiz created in Flex using Spark forms, with a series of questions which are a group of radio buttons. When the user clicks "next", I get the value of the selected radio button in the group. What I need to do is keep track of these values; at the end of the quiz I will need to see which value was chosen the most. So if the user mostly picked the questions with a "3" value, I can display a summary based on that, e.g. "You mostly chose type 3 answers". I was thinking about having an int variable for every choice (there are 5), and incrementing the appropriate variable when the user clicks "next", as in

private function enterScore(i:int):void {
switch (i){
case 1:
num1++;
break;

But this seems unwieldy. I also will need to compare the 5 tallies for which one was chosen the most...

View 1 Replies

ActionScript 3.0 :: Need To Play Animation On Right Answer

Sep 9, 2009

I have 2 swf animations (one of a happy bear and one of a sad bear), I want to load them into actionscript. When the player gets it wrong I want the sad animation to play and happy one to play when the player gets it right.

View 2 Replies

ActionScript 2.0 :: If Statement To Check Answer?

Jun 29, 2004

The user needs to submit a dollar amount answer. They could write is several ways. I'm trying to accomodate it with the code below. It always evaluates it as the wrong answer (the else).

[Code].....

View 4 Replies

ActionScript 3.0 :: Add Multiple Choice Answer To An Object?

Oct 18, 2009

I have declared an array which holds an object such as:

var myArr:Array = new Array({Question: 'Primary Colors Are?'});

How can I add the multiple choices to the object These are the choices:
 
red, green, blue
orange, red, white,
purple, yellow, green,
white, black, blue
 
I certainly can create the Answers as:

var myArr:Array = new Array({ Question: 'Primary Colors Are?', Answer1: 'red, green, blue',
, Answer2: 'orange, red, white, Answer3: 'purple, yellow, green', Answer4: 'white, black, blue' });

What I would like to do is to be able to store all the answer choices within an array called AnsArr. Can I declare a new array within the same obejct such as AnsArr and push these choices to it? 

View 3 Replies

ActionScript 1/2 :: Data Entered And Calculated To Answer?

Jun 27, 2010

options as I wish to learn how one would create a tool that would provide allow the end user to enter numbers, in some predetermined/static fields. The tool would then use this data and provide the answer.Simply put, i'm looking to create a basic ROI calculator (Return on Investment).

View 3 Replies







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