ActionScript 2.0 :: Assigning Points In A Quiz?

Aug 4, 2009

Believe it or not I am new to Actionscript 2 and only really now AS3 I need to track a user's points in a quiz. The quiz is a template that you can get on CS3 There is are components of a checkbox each with an instance name of (Checkbox1, 2, 3 etc)The checkbox1 (etc) component has an initial state of selected = false
I have created code to sit on each question, to assign a point value depending on what box they tick, but when I run a trace, none of the information the user has inputted has been stored.

[Code]...

View 3 Replies


Similar Posts:


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 :: 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 :: Calculating Evenly Distributed Points On A Line Of Points

Oct 3, 2011

I have been tasked with trying to create a drawing tool that draws dotted lines as you drag the mouse across the stage. I can easily capture the points on MouseEvent.MOUSE_MOVE and store them in a vector and then draw the points as dots:

The problem is that I need to calculate evenly distributed points on an ever growing Vector of points so I can only draw the line between say every 5th point (say using modulus). I have been battling away with Bezier curve equations both Quadratic and Cubic but still can't quite figure out how to convert my Vector of points into an evenly distributed Vector of Points without sucking the life from the CPU.

View 1 Replies

AS3 :: Points & Lines - Getting Lines To Follow Points As They Are Dragged?

Jul 21, 2010

I am trying to create a mindmap where the user can drag points about the screen. I have gotten as far as drawing the line via actionscript, and drag+drop the points (defined as movie clips on stage). This is the existing script - I don't know how to get the lines to follow the points. Something to do with ENTER_FRAME or updateAfterEvent?

var line:MovieClip = new MovieClip();
line.graphics.lineStyle(1,1);
line.graphics.moveTo(ptOne.x,ptOne.y);

[code]....

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

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

ActionScript 3.0 :: Building A Quiz That Is Not Stand-Alone

Dec 6, 2010

I've looked online at different quiz-building tutorials, but almost all of them are for stand-alone quizzes. I am adding the quiz as part of a whole interface design. When you click on one of the sign buttons I have on it, a mask will appear and the first four quiz questions will appear. Once those are answered, the next four will appear (probably when they click "next" or something). When I get to the end, I want the results of their quiz to appear.I want to try to use the code my teacher wrote for me so I don't have to build anything extra.if that doesn't work, can I embed a .swf into the file I'm working on? I need this quiz; everything else in my project is done (aside from some tweaking) and I need this finished AND working by Dec. 17.[code]

View 2 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 2.0 :: Create A Quiz Using Flash?

Jul 19, 2006

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

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

IDE :: XML Flash Quiz (Multiple Choice)

Jan 31, 2007

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!

View 2 Replies

ActionScript 2.0 :: XML-quiz And Time Activation

Dec 10, 2007

Do anyone know of a way, or a site that mentions how to make a quiz in flash, or time activation in flash. .For instance if the xml says that something starts at 6 o clock and ends 12 o clock. and then something else starts after that. How do you do something like that in flash?

View 5 Replies

IDE :: Fill In Blanks Quiz Update

Jan 20, 2009

I need to do a basic fil in the blanks quiz.I have this code working in flash 5 but can't get in working for FP9. Any ideas. Ive tried searching online but no success.Also would it be possible to do multiple balnk fields to get checked?[code]

View 2 Replies

IDE :: Flash Quiz - Score Keeper?

Nov 9, 2009

I'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 Replies

ActionScript 2.0 :: If / Then Conditional - Simple Quiz?

Mar 13, 2011

trying to make a 3 question quiz on a 300x250 banner in flash.. If 2 of 3 questions are answered 'yes', it's should relay one function (playEndScreenYes()). If 2 of 3 questions are answered 'no', it should relay another function. (playEndScreenNo()). This is clearly a situation calling for the if / then statement. I have it set up, but I can't seem to get it working. I would gladly pay you for an hour of your time today, if you are familiar with if / then conditionals, I think you could look at my code and solve the problem in 10 minutes max. I am a seasoned flash designer and I animate with as2, but I can't wrap my head around this and its making me a little nuts.

some code:
//////////////////////////////////////////
bulletUp1.onRelease = function() {
a = 1;
if (a == 1) {

[code]....

View 1 Replies

Read In A Xml File To Create Content For A Quiz?

Apr 16, 2009

I am writing a class in AS 3.0 to read in a xml file to create content for a quiz. Once I instantiate the xml obj and pass in a string that determines the xml name in the constructor for the xml class I read in the xml and populate some arrays. Evidently in AS 3.0 you have listeners for reading in xml, which is the problem I am having. Once the object is instantiated I try to call on a method called getArray, but the XML hasnt finished being read in and I get a compile error. Error below: TypeError: Error #1009: Cannot access a property or method of a null object reference.at xmlReader_fla::MainTimeline/frame1()

[Code]...

View 1 Replies

ActionScript 2.0 :: CS3 Flash Quiz RadioButtons Undifined?

Oct 22, 2009

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

View 1 Replies







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