IDE :: Flash Quiz - Score Keeper?
Nov 9, 2009I've been fiddling around with the flash quiz template and it's pretty much what I need to a point. But I really just need is to know how to keep score?
View 1 RepliesI've been fiddling around with the flash quiz template and it's pretty much what I need to a point. But I really just need is to know how to keep score?
View 1 RepliesI'm designing in AS2 - because for some reason, i thought this tutorial was made for AS2 - is this AS3 code and is that the problem??The Problem. The game runs fine, but the score keepers (both for hit and missed balloons) only show the numbers 1 and 5. so if i pop one balloon, it says 1. then for a score of 2, 3, and 4, it is blank. until i pop that 5th balloon, then it says 5, then back to blank for a score of 6.Even stranger (to me) is that the game has a count-down timer that counts backwards from 60. it also only shows then the time has a 1 or a 5 in it. same as the scores.
View 4 RepliesI 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]....
I'm working on a quiz using AS3 on timeline. I can't figure out how to save the score at the end of the quiz. The result of quiz is displayed by its dynamic text box (out_score.text), but it isn't saved along with the rest of information. When I go back to section I, all information is displayed, but quiz score goes back to zero (0). I have section I, which collects user information. Section II, 25 question quiz, and section III, which displays information and score.
SECTION ONE (labeled "inf"):
// score variable
var i:Number=0;
[code]....
I'm trying to create a simple quiz with a few questions, the code I have below doesn't seem to work. It comes up with my final score as -15 all the time, its not even checking to see if the answer is correct, as soon as I load the movie the Output comes out as -5 -10 -15.
quizBut.onRelease = function() {
totalOutput_txt.text = "Your final score is: "+score+"/30.";
};
score = 0;
if (_root.answer1 == "flush") {
[Code] .....
I am working on an eLearning lesson that needs to score quiz results using a statistical formula called a probit function. There are formulas in many languages (VB, C++, etc.) for the probit function, but not in AS3. The closest I can find is in JavaScript.
[Code]...
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 RepliesIm designing my own game in flash, iv set up a score text box and it works fine. Except i just cant seem to get it to gotoandplay another frame,scene, when it hits a certain score??
View 4 Repliesi am building a shooting game and i was wondering if it is possible to have the movie go to frame 3 if the score = 500.I.E Score is displayed in a dynamic text box and everytime the enemy is hit the:
_root.score +=50
=============
on the first frame of the film i have the code
if (_root.score == 500) {
gotoAndPlay(3);
}
I have a result screen that shows bonus points and such. I want each text field to increment one after another and also have it increment by a certain amount each frame. Result Screen pops up. First is the player score check the player score, is it more than the score we want to display if the player score is greater than the player display score by 100 increase the player display score by 100 if the player score is greater than the player display score by 10 increase the player display score by 10 else increase the player display score by 1 when finished move to the next score...and so on. I have thought of using timers to move from one score to the next, but not being in an Event.ENTER_FRAME it only does one if then moves to the next one.
Also the if statement for incrementing the score looks ridiculous and I'm thinking there has to be a better way to do it. I was thinking of making it a separate function but then I wouldn't know what to return, or how to return it so it looks like its increasing and not just showing the total number instantly. I'll try to expand on it a little more.
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 RepliesI 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?
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 RepliesUseful link or resource or idea for creating a quiz in flash.My quiz has got these features that has to be mapped with the functionality
a) total of 150 questions divided in 4 modules
b) a time limit of 180 mts
c) option box or radio button for choices
d) mark for review functionality
e) negative marking
f) final review of correct and wrong answers
this is very similar to BITSAT exam conducted in India, by BITS PILANI as a online exam.
I have made a quiz from mixing and matching from various tutorials of the internet, and now want to make the questions (multiple choice) and possibly the answers appear shuffled. The xml looks like this:
<quiz>
<title>Quiz</title>
<items>
<item>
<question>In which continent is the country Japan located?</question>
<answer correct="y">Asia</answer>
<answer>Europe</answer>
<answer>Africa</answer>
<answer>America</answer>
</item>
and here is what I've got so far with the actionscript!
im fairly new to using actionscript i am making a quiz at the moment it has a few features.
Signup - Done
Login - Done
Admin - Not started
101 - Questions - 10 Done for testing
All info submitted by php/mysql - Done
So far as it says above i have 10 questions setup i use a php script to submit answers to mysql and update the users score after checking the answer from mysql. The questions are all written out on a keyframe each with radio buttons and checkboxes depending on the question. Well anyway i will get to the point.
I have can test the quiz and can get to question 4 before i get undifiend from the radio buttons on that frame i dont know why i keep getting it it is setup the same as the first 3 questions with the same code but the radiogroup is named differently.This may be terrible code but it worked for the first 3 so i dont see why its not working for the rest of them :S
[Code]...
I am still using flash 6.0, the version the school gave me, anyway first of all are there any updates available somewhere? I'm still with the original 6.0000000 version. I am creating a flash quiz using the templates available, it's really easy and everything is going well. However, is there a way to redirect the user (getURL) if he has a percentage of say, 80% or higher?
View 16 Replies" 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!)
Using Flash CS3, having issues getting flash to send quiz results to a LMS. Using the Flash quiz templates, exporting with SCORM 1.2 compliance. The LMS is able to track times attempted and if the lesson was complete or not, however the quiz results don't reach the LMS.
I think this can be resolved in the actionscript or the javascript that gets exported with the HTML file Apparently you can control the javascript functions with FScommands from actionscript Something like fscommand ("LMSSetValue","cmi.core.score.raw" + "," + integer); I don't know where in the actionscript this should be triggered from.
I would like to point out I have spent from 11PM last night to 4:30AM this morning searching the internet trying to find examples and ideas but I just cannot seems to find anything. I need to create a Flash Quiz with the following:
1.) A page with a question, including a "submit" button, and an Input Text field where the user can type in his answer.
2.) A page with "Correct" and a page with "Incorrect"
I have already gotten the pages and graphics created. But for the life of me my Action script is not working. I have boiled it down to the fact that maybe I just haven't named the input text field with the right variable?
EDIT: I need to use AS 2.0 and not 3.0
Quote:
on (release) {
if (answer == "2") {
gotoAndStop("correct");
[code]....
No matter what answer I select, it will always take me to the "incorrect" box. So I am convinced it has to do with the "IF FUNCTION" and it not being the right name.
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.
I would like to make a flash generator app like QuizCreator og Quiz Writer. Does anybody here know how these flash generators are made.I guess they are written in for instance C sharp. But how is the flash movie generated with these apps. What is needed to make such apps?
View 1 RepliesI 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 RepliesI am looking at the creation of a quiz using the Learning Interactions in Flash.I noticed that when I place say a Multiple Choice question on the stage that the area which says 'Question will appear here' is a dynamic text field.This renders the final text bitmapped. Is there any way of getting the text to look like smooth like the rest of my work?I have tried to anti alias it for Animation and Readability but it doesn't change.nd in all honesty set against the rest of my work the text looks crap.
View 1 RepliesIm creating a Flash quiz using external XML data. For example, 5 items and the user has to select the correct ones. The answer is inside the XML, and looks like this:
HTML Code:
[Code]...
I am editing a flash game,I want that whenever user press the submit button,his score should be saved in the database at my Server.How i can achieve this task?I had got the variable in which score is stored.I can i send this to my database.
View 1 RepliesI am trying to create a quiz in Adobe Flash CS3 using Drag and Drop Feature. I have created similar Drag items and I want to drag the item and place it into any target. For Ex. I want Drag1, Drag2, Drag3, Drag4, Drag5 should go to any target from Target1, Target2, Target3, Target4, Target5. The objects on Drag1 through Drag5 is similar like I am working on number system. So I want the Drag boxes to go to any place values into the target boxes. But the drag and target instance names should be unique and should be mentioned in the component inspector also.
View 3 RepliesI tried to create some, such as "Drag and Drop" or "True and False." However, the instructions weren't adequate. I couldn't figure out what Adobe was telling me to do. I went online to Adobe, and tried to find tutorials.It seems, to me, that there Quiz Learning Interactions are included only in the version of Flash CS5 that comes with the e-Learning suite.
View 27 RepliesI'm trying to make a basic true/false quiz in Flash.It involves a question with two radio buttons with instance names t1 and f1 (true and false).When the user presses check answers a movieclip with instance name yn1 moves to frame 2 or 3 which displays a tick or cross.
This is all working fully, the problem arises if the user presses check answers again.This for some reason turns the ticks to crosses and the crosses to ticks and I have no idea why!?My code is as follows:
import flash.events.MouseEvent;
stop();
checkAns.addEventListener(MouseEvent.CLICK, checkAnswers);
function checkAnswers (Event:MouseEvent):void
[code]....
Does anyone have a simple template that hooks a flash quiz up to an lms using scorm?
View 2 Replies