ActionScript 3.0 :: Quiz Is Not Scoring Correctly

Jul 24, 2010

I'm trying to make a quiz with multiple question types (multiple choice, true/false, fill in the blank, drag/drop). The problem I am having is that the questions are not scoring correctly. Here's what happens

[Code]...

View 5 Replies


Similar Posts:


Professional :: Creating Online Quiz With Scoring Results

Aug 8, 2010

I had an existing client ask me about the possibility of building an online quiz. I am fairly adept at working "inside" Flash, but always run into problems when trying to export data "from" Flash anywhere else. I am also trying to figure out if Flash is the best application to build this quiz (I see other possible apps like Captivate, but don't know if they are necessary for what I am trying to do).

What I need to do:
I need to create a Login screen to attach the final text score to an individual.
Create (50) separate screens for 50 questions with multiple answers for each (simple enough) with submit buttons once the answer(s) are chosen.

Each time an answer is submitted it has a certain "weight" toward the total score (which I am guessing that I could track into a variable inside Flash?) When the test is complete all I need to do is send that Person's Name/Total Score to a database. Is this something best accomplished using Flash?

View 3 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 3.0 :: Swf Within A Swf Scoring?

Apr 12, 2012

I've created a flash file (my project) that is loaded into another swf (our player) file on our site. When I test the project file on my computer the scoring displays correct at the end of the lab. When it is loaded into our  swf player on the site the score doesn't display. I'm at a lose for why this is happening.

[Code]...

View 8 Replies

ActionScript 2.0 :: Scoring In Flash Mx?

Oct 21, 2004

I have a bunch of textboxes that they have to click a button to check to see if their entry is correct. I have this code within the buttons

on(release) {
if(_root.q5answer == "2") {
_root.correctmovie.gotoAndPlay(2);
_root.total = _root.total + 5;

[code]....

it adds 5 every time to the dynamic text box...I have this within the correctmovie (which is checked after each question):

if (_root.total(Number(100))) {
tellTarget("allcorrect") {
gotoAndStop(2);
}
}

it adds up correctly, but when it gets to 100, it doesn't play the allcorrect movie.

View 1 Replies

ActionScript 1/2 :: How To Create A Scoring System

Jul 7, 2011

i am making a shooting game for ict and i dont know how to make a scoring system or where to put the code this is my code:

stop();
var numEnemy = 3;
var fire = false;

[code].....

View 7 Replies

ActionScript 2.0 :: Game Scoring Is Inconsistent

Jan 8, 2012

I'm building a simple game where players scores 1 point each time his/her paddle makes contact with a ball falling vertically from a random X position. All works well - except for the scoring. Hits will score anywhere from 1 to 4 points; they should only be scoring 1.

View 2 Replies

Incorporate Scoring Code Into Current Game?

Apr 28, 2010

I'm trying to incorporate a scoring code into the current game.

View 3 Replies

ActionScript 1/2 :: SlotMachine / Match Game Scoring

Sep 24, 2010

I am working on a game that is set up like a slot machine. The first box contains a name, the second box cotains a piece of information about the person and the third box contains another piece of info. Each box has a movie clip in it that contains 10 frames, each frame has text in it (a name or piece of information). There are up and down arrows above the second and third box as the user can control what piece of info is in that box using the arrows (if the user clicks the up arrow they go up 1 fram to different info....if down down a frame to new info.) The first box is not user controled, it has a button that randomly generates the name the player is given with a spin animation.
 
The goal of the game is to match all three boxes the random name with the 2 user controlled pieces of info. If this happens I want the player to receive 20 points. However, if the player only matches one of the pieces of info to the random name then they should only get 10 points. If they do not match ny pieces then no points are awarded.

I figured the best way to do this would be to give the corresponding correct answers and names matching variable names and set it so if you have 2 matching variables you get 10 points and if you have 3 matching variables you get 20 points (no points awarded for 1 variable because 1 variable alone would be the name). My problem is that I dont know how to assign a frame a variable number and I also dont know if its even possible to do something like this. Am I on the right track or is there a much better way to set up scoring?

View 1 Replies

ActionScript 3.0 :: Creating Scoring System Through Frames

Apr 13, 2011

I am trying to create a quiz in Flash CS5. I have coded all the quiz so that it is done in different frames, such as the start screen in frame 1, then the five questions in frames, 2, 3, 4, 5, and 6 (one for each question). How would I create a scoring system so that if the user got a question right it would add 1 to the score but continue scoring through to the next frame? It needs to have a pass rate of 4 out of 5 correct answers.

View 1 Replies

ActionScript 2.0 :: Scoring Drag And Drop Interactions?

Apr 22, 2005

I have a bunch of drag and drop interactions in my flash file that gets graded, the problem is, they can move it away and back again to make the points keep adding up. What kind of code can I put inside my draggable movie/button to say when it is placed correctly, that is it, it can't be moved again?

View 2 Replies

ActionScript 2.0 :: Learning Interactions Scoring Control?

Oct 8, 2006

I am using a learning interactions quiz at the end of an animated movie. Because it is entertaining I would rather not launch as a standalone quiz. Everything works perfectly when the quiz is on its own timeline that starts at frame1, but whether I use loadMovie or use the quiz as a movieclip, or start the quiz on frame 1460 on the scene1 timeline the calculate score control doesn't work. It is called mc, frameNav and it comes with the Flash quiz templates. The AS associated with that mc is below.

[Code]...

View 1 Replies

ActionScript 2.0 :: Scoring Drag And Drop Interactions

Apr 22, 2005

I have a bunch of drag and drop interactions in my flash file that gets graded, the problem is, they can move it away and back again to make the points keep adding up. What kind of code can I put inside my draggable movie/button to say when it is placed correctly, that is it, it can't be moved again?

View 2 Replies

ActionScript 3.0 :: Screen Fallowing Character And Scoring System

Aug 28, 2010

I'm new to flash and I cant find any tutorials on how to make the screen fallow a character when you come up to the left or right edge of the stage so the map will continue on a platform game and adding scoring system in action script 3

View 17 Replies

Professional :: RemoveChild Not Working - Movieclip To Appear With +5 To Show The Point Scoring

Mar 2, 2011

I have a simple catching game with objects falling from the top of the screen and when they are caught at the bottom I want a movieclip to appear with +5 to show the point scoring. I have set up a timer to show the mc then to delete it when it finishes. It all works apart from the mc will not disappear once the timer is finished. I have thrown a trace statement in to check that it is firing and that shows up fine. What the hell am I doing wrong? Here is the section of code:

[Code]...

View 2 Replies

ActionScript 1/2 :: Scoring And Data Collection For Simple Flash Game

Nov 29, 2011

My company has developed a very simple "Whack-a-Mole" type of game for a social media campaign. See here: [URL]. Our client is now requesting that we add a scoring system so that we can offer a prize to the 3 top scores. What I need is to be able to link the number of "whacks" to a score and enable the user to input their email address at the end of the game connected to the score they achieve.

View 5 Replies

ActionScript 3.0 :: RemoveChild Glitch - Scoring Process With The StartTest Function

Feb 1, 2012

I start running a scoring process with the startTest function which adds 2 text fields - the score (as a number) (myText2) and the label "Score" (myText5) next to it using this code:

[Code]....

View 3 Replies

ActionScript 3.0 :: Flash Game Scoreboard - Setting Up A Scoring System

Apr 5, 2012

I am making my very first AS3 game, and though it's quite simple I'm having trouble setting up a scoring system. The concept of the game is simple. Objects appear on the screen, clicking the objects adds points. For this project I am working with 3 AS files, a Document class and two movieclip class files. I would also like to track how many objects have been added to the stage in addition to the score which should track how many objects have been clicked. Here is my Doc Class

[Code]...

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

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

ActionScript 2.0 :: Flash Quiz (form) To CSV Using PHP

Jul 27, 2009

I have a simple quiz (Q and A) to design that contains both input fields as well as dynamic fields which gets a value (text or number) from an onClick action. When i submit the form, using the code from this thread (http://board.flashkit.com/board/show...hreadid=766156), i managed to get the input fields content to get saved on to the CSV file, however the dynamic content doesn't. it only works when i literally type the value in the text field.

View 8 Replies

ActionScript 3.0 :: Creating A Quiz For A2 Module

Mar 3, 2010

I have made a start on my quiz, in order to complete the criterions I have to create a project (a quiz in my case) which uses a variety of methods and tools e.g. drag and drop features, user text input and numeric input etc.I had planned on creating 4 topics and 4 questions in each. Having searched the forum it appears that the common consensus for creating a quiz is to set up your questions in a XML file however I have no idea how to use this or what it is. Moreover from my research I found I appear to be doing things slightly different to other people who are doing or did a quiz. This difference is how the answers are input; I will be user input text fields along, multiply choice buttons etc. I also am placing my questions in different places for different sections and I am also required to use video.This may still be able to be done however I only have 29 days to complete the task and the way I'm planning will be quicker as I understand how it works at least. The first problem I am having is how to code for the input text. I plan on allowing for the user to input a word and then to compare that word against the correct answer. This also brings me onto my second problem. Once a section of questions has been completed I plan on taking the user to a screen which displays how many answers they got correct. This would involve tracking their answers and comparing them to a set of correct answers however I have no idea how to do this. (from what i have learnt recently the use of an array maybe?).

The final problem I am having at the moment is setting up a 'barrier of sorts' In my first question i have set up a mask which applies only to the image I have also placed on the stage. The mask is applied to a circle which can be dragged around displaying small sections of the picture at a time. I wish to stop the circle leaving the picture as it falls under the background once it as left the area of the image. This results it in disappearing. I have no idea how to solve this and I could not find information on it. The solution I think would be to stop the masked circle leaving the area of the picture OR to reset it back to original position if it is released outside the images area.My quiz is far from complete at the moment and I have not yet even finished the frames for each of the questions however these problems are fundamental to the quiz's success and so I felt I needed to confront them now.I can upload what I have done so far and send the link in a pm so you can see what I mean (if it is not already clear)

View 14 Replies

ActionScript 1/2 :: Quiz - Count Score At The End?

Nov 23, 2010

I have a working quiz but I want to know how to get the score of the number of correct answers the person got but I can't seem to figure out the code for it. This is my code below.

stop();// movie clip waits on buttonsgloss_mc._visible = false;// set the gloss initially to not visiblescore_int = 0;// score on the quiz is initially zero// button functionsq1_btn.onRelease = function() {    scoreQuiz_fnc("1");};q2_btn.onRelease = function() {    scoreQuiz_fnc("2");};q3_btn.onRelease = function() {    scoreQuiz_fnc("3");};q4_btn.onRelease = function() {   

[code]....

View 5 Replies

ActionScript 3.0 :: Build A Basic Quiz?

Nov 26, 2010

I'm trying to build a basic quiz - there are 6 questions and I want it to display a score at the end. Everything works and it shows a value at the end (but always '0'). It's not keeping proper scoring as users go along, it should be adding '1' point for each score, no matter what option is clicked it just traces '0' in the output window. Maybe something to do with the variable or? Kinda new to Flash, the chunk of code I believe to be the issue is below, 
 
import flash.events.MouseEvent;
//varialbe for keeping score
var score:Number = 0;
//event listeners for button clicks, which will adjust the scoring array

[code].....

View 1 Replies

Importing Flash Quiz Into Another Movie

Apr 5, 2010

I am having trouble loading a quiz.swf into another another movie. To generate my quiz I goto
File > New > Templates > Quiz > Quiz_style_1
And in the first frame of the example quiz I add:
stop(); // To prevent playback
this._lockroot = true; // to preserve the heirarchy

Then I publish the quiz as testquizex.swf, and I can test this movie and it works fine by itself. Then in a different movie I start with a blank scene I add a keyframe and I insert
stop();
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.loadMovie("testquizex.swf");

Now the movie imports and loads into the frame and I can navigate through to the first question page, but the quiz doesn't actually work anymore i.e. drop targets dont work and the score won't increase. Is there anything else I have to do to the stock quiz template to make it importable into another project?

View 1 Replies

Java :: Flash - How To Create A Quiz GUI

Aug 17, 2011

I'd like it to display a question on one page, then have a next button which takes the user to another page telling them if that question was correct or not, and if it is correct they can move on to the next question (by clicking another next button) and if they got it wrong, have to go back and answer it again. However I have no clue how to do this! which includes a quiz. Would it be a better idea to create the quiz in Flash or something and then embed it into my Java application? Or just do the whole thing in Java?

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

ActionScript 2.0 :: Add Image To Existing Quiz?

Jun 4, 2010

I am using a qui developed as an opensource flash and running a php script to convert this to xml to drage data from database, this works absolutely fine, but I want to load an image into an empty movie clip and not sure where i am going wrong[code]...

View 0 Replies







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