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


Similar Posts:


Actionscript 2.0 :: Make Interactive Multiple-choice Quiz In Adobe Flash?

Aug 13, 2009

Adobe Flash also lets users make interactive Flash quiz. This tutorial will guide you how to create interactive drop-down multiple-choice quiz in Adobe Flash. This short tutorial is just a sample of the workflow you'll use while authoring in Adobe Flash CS4.

Step 1 - Create a new document

a. Choose File > New.

b. In the New Document dialog box, selcet Flash File (ActionScript 2.0) and then Click OK.

Step 2 - Document settings Right-click on the stage, selcet Document Properties, then the Document Properties dialog box appears. It displays the current Stage size setting as 550*400 pixels, and the Background color swatch is set to white. You can change the size and color of the Stage as you want.

Step 3 - Import image to the stage Choose File > Import > Import to Stage, and then select the image you want. You also could click Ctrl+R to import image.

Step 4 - Add the multiple choice question to the Stage

a. Select the Text tool (T).

b. In the Property inspector (Window > Properties), select Static Text type to specify the type of text field, and then input the question " What was Michael's first song to air on MTV? ". You also could set the font size, family and color of the text.

Step 5 - Add ComboBox component

a. Select Window > Components.

b. Double-click ComboBox in the Components panel.

c. Select the component on the Stage, and name the instance name as box in the properties panel.

Step 6 - Add answer options

a. Select Window > Component Inspector. On the Component Inspector, click data, then the Value dialog box appears.

b. Click + to add answer options, and then replace the defaultValue as answer options, here the options are: thriller, billie jean, bad and the way you make me feel. After that, click OK.
c. On the Component Inspector, click labels, then the Value dialog box appears. Please following the same steps above to add the values by adding the + button.

[code]...

If that's too complicate to you, you could choose some 3rd party quiz makers to make multiple choice quiz for you. Wondershare QuizCreator is such a good Flash quiz maker that help you create multiple Flash quiz with ease.

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

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 :: 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 3.0 :: Randomize Multiple Choice Buttons

Oct 26, 2009

I want to randomly scramble 4 multiple choice buttons (assigning each of them to one of four different positions). I'm trying to (a) randomly extract an element from an array, (b) delete that element from the array, and (c) go through the same process 3 more times till I have 4 random numbers assigned to 4 separate variables. I should be able to assign the buttons to different positions after that. 

Here's the first round of what could loosely be called code:

var firstElement:Number = 0;var distList:Array = ["0", "1", "2", "3"];var distNum0:Number = 0;var distNum1:Number = 0;var distNum2:Number = 0;var distNum3:Number = 0;

[Code].....

View 9 Replies

ActionScript 3.0 :: Setup A Multiple Choice Radio Button?

Jul 21, 2010

I am trying to setup a multiple choice radio button question quiz, but I'm having issues with some of the AS and was hoping some of you could assist me. I'm fairly new to ActionScript, but I'm trying to pick up quickly. The code is listed below. The lines giving errors have been increased in size.

[Code]...

View 9 Replies

ActionScript 3.0 :: Multiple Choice Question Not Displaying Answer Feedback?

Jun 9, 2011

I have a few multiple choice questions using ActionScript 3.0 that are not displaying the answer feedback when tested as a movie or published to a swf. The way the question is set up is that a learner clicks a radio button and then clicks a Check Answer button. A red X or green checkmark appears next to the selected answer choice.Incorrect/Correct feedback should then appear below the Check Answer button.Currently the Incorrect/Correct answer feedback is not appearing in the output box when published.
 
stop();
 var currBtn = "";
var currSelected:Number = 0;[code].......

View 1 Replies

Actionscript :: Add Score Tracker In An If / Else Statement For Multiple Choice Game?

Dec 12, 2010

Where and how I'd put the rest for the score tracker? I'm going to be making 3 of these multiple choice questions, so what would be the best way I lay that out and transition from one question to another?[code]...

View 1 Replies

ActionScript 2.0 :: Multiple Choice Questions Where The Question Are Being Fetched From A XML File

Jul 18, 2003

Can somebody give me an example of Multiple Choice Questions, where the question are being fetched from a XML file.

View 5 Replies

Flash :: Professional - Crashes When Add In A Multiple Quiz Or Fill In The Blank Quizes From The Common Libraries

Mar 19, 2010

When I try to add in a Multiple Quiz or Fill in the Blank quizes from the Common Libraries, nmy flash crashes.

View 11 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 :: Math Quiz - Generate Multiple Of First Number

Apr 20, 2009

I am trying to develop a maths quiz where I need to generate a random number, I then need to generate another random number but this needs to be a multiple of the first number. I just can't work out how I can generate a multiple of the first number.

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

Flash :: Change Default Choice For Autocompleted Classes?

Feb 9, 2011

Sometimes there is a name conflict between classes in two different libraries, but I almost exclusively use one over the other. Unfortunately, the one I am using is not showing up as the first entry and I have to press the down arrow to pick it.

View 1 Replies

Flash :: Viewer / User Can Watch A Video Clip Of Their Choice

Jun 25, 2009

I want to make a flash form where the viewer/user can watch a video clip of their choice (from a drop-down control or something else if there's a better way). I've found myself totally unable to find our how to do this. I mean, frankly, I don't even know what kind of file to start from the "New..." form at the beginning of Flash (CS 3.0, btw)!

I know how to create a Flash Player and link it to a single video. What I envision is that after the page comes up, with a single player component (initially empty), the user chooses a video from the drop-down list and that video starts playing in the player. What kind of file should I be starting with? {I kinda assume I'll be making an SWF to put on a web page.} Where on earth do I learn how to get the simplest things (e.g., button clicks, etc.) to work?

View 2 Replies

Javascript :: Client Technology Choice - Any HTML5/Canvas Libraries As Capable As Flash/Flex?

Jan 7, 2011

I built a prototype in Adobe Flex, they (customers) liked it. Everything was fine until they later told me that iPads / iOS needs to be supported too.I checked out Adobe's Packager for iPhone. We're evaluating that and we will know if it works out in a couple of days. (We need to get through Apple's red tape and certificates raj so this angle is delayed by a few days!)

There is a growing voice for using HTML5/Canvas as a technology platform itself. And despite being quite proficient in Flex, I think this makes sense.

I'm in need of a HTML5 library that can:

Render "widgets" i.e. containers with forms and components(this should be easy and possible using POHJC - Plain old HTML,JavaScript and CSS )Provide a Tree like control for laying out some data Provide a Canvas where data structures can be represented as basic shapes Provide drag and drop capabilities between Trees, Buttons and Canvas Provide some sort of Tab Navigator container (I guess JQuery works here) Interact with back-end services (JSON/XML calls will be okay, but mapping directly with back-end entities will be awesome!)Renders on latest versions of major browsers, Android OS and iOS (WebKit for mobile?)

I'm ready to give JQuery & JQuery UI a try. I looked at Sencha / ExtJS but it seems we need to maintain two code bases one for normal browsers and the other for mobiles (is that correct?)Single code base, I don't want to suggest to them that multiple code bases for the client need to be maintained. That's a last resort option and would lead to complete ruling out of HTML5 with Flash apps and native apps being developed.Canvas capabilities - I don't want to work with raw canvas and shape tags. This too is a last resort option. Is there any abstraction available?

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

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

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

ActionScript 1/2 :: Creating Flash Quiz Using Template?

Jul 19, 2009

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

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

Professional :: Sending Flash Quiz Results To A LMS?

Mar 15, 2012

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.

View 1 Replies

ActionScript 2.0 :: Flash Quiz With Input Text?

Sep 1, 2009

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.

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







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