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


Similar Posts:


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

ActionScript 1/2 :: Survey With Several Multipule Choice Questions Using Radio Buttons?

Nov 10, 2009

I have created a survey with several multipule choice questions using radio buttons. I want the last page of the survey to display results to the user kind of like a Cosmo quiz.like "50% A." "25% B." "25% C." "0% D." I can't find any info on how to do this with Actionscript.

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

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 :: 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 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 2.0 :: Dynamic TextBox For Multiple Questions - Align Bottom?

Oct 11, 2004

I have a dynamic text box for multiple questions in a text. We would like to get the text box to align bottom (so the text is always at the bottom of the box no matter how much text is in the varriable). Is there a way to do this?

View 5 Replies

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

IDE :: Create A Form That Has Multiple Questions Instead Of Just A "subject And Message" Field?

Jun 23, 2009

I'm trying to create a form that has multiple questions instead of just a "subject and message" field.

View 2 Replies

ActionScript 2.0 :: Create A Button For The User To Click And Then Have A Choice To Save Or Open File?

Jul 28, 2005

I'm developing Flash for a CD.I want to create a button for the user to click and then have a choice to save or open file (like PDF or Word file).

i have the following code:
Code:
myButton.onRelease = function()
{
getURL("abc.doc");
}

I can't see anything wrong with the above. I intend to use the code for a CD ROM.abc.doc will sit on the CD ROM. When I click on the button, it opens a browser window and tries to go to google.com.I had it working the other day.

View 2 Replies

Flex :: Maximum Size Of Data Which Can Be Fetched Using Web Service?

Jun 30, 2011

I want to know the size limit of data which can be fetched in case of HTTP/Webservice/RO.

View 2 Replies

ActionScript 2.0 :: Preloading External Images Fetched By XML Via LoadMovie?

Nov 1, 2009

I have a flash website, which has 4 menu options, each of which when you click fetches a different XML file in which the child nodes indicate the content, or description of an item, and fetch a external image to represent it on stage. Each menu option when clicked gets a new XML file, replacing the old one in the xml variable. Once the XML is loaded (xml.onLoad()) it sends it to a function (loadItems) to place each item on stage. Obviously, when uploaded onto the Internet, when a XML loads, the images are still loading, thus the Tween effect of them appearing on stage can't be seen.

I need to find a way of how to create a preloader, that would show the status of ALL the images download progress, and once complete, starts the Tween effect of them appearing on stage.

loadItems function (places the external images from the XML file on stage):

ActionScript Code:
var xml:XML = new XML();
xml.ignoreWhite = true;
function loadItems()

[Code].....

View 4 Replies

Data Integration :: Create Tests Using A Data File For Questions?

Mar 15, 2007

Is it possible to pull questions from a data file into flash without having to create new frames for every question. This would be a multiple choice test. We currently hand type the questions into multiple frames and grade at the end.

View 1 Replies

Xml :: Import Questions To Xul / Flex?

Jan 23, 2011

I need too create quiz app using xml for database for questions and xul or flax for interface, quiz should have 3 types of questions : single answer (radio), multianswer (checkbox) and open (textfield). I really don't know how to import questions from xml, to xul/flex Also i need to save the answers to txt/xml file The xml database is something like this

[Code]...

View 3 Replies

How To Randomly Spawn 3 Out Of 10 Questions From Library

Feb 12, 2010

I'm really new at flash and I'm having some trouble with a textbook assignment. Before I explain my problem here is the code:

Code:
stop();
var defValue:Number = 1;
stage.addEventListener(Event.ENTER_FRAME, vetIkke);
function vetIkke(e:Event
[Code] .....

I was doing some assignments in my as3 textbook when I ran into a bit of trouble. I'm trying to make a flash that picks 3 random questions out of a total of 10 and displays them on screen. I made each of the questions movieclips and assigned them all a class (question1 - 10) through Linkage. So the variable "randomQ" is the name of the class of a random question, but how do I get flash to understand that? And how do I spawn that question as a movieclip on stage?

Code:
var Question:MovieClip = new randomQ();
I've tried various alterations but can't seem to find the right one. It's possible I've yet to learn the necessary knowledge in order to make this flash.

View 1 Replies

ActionScript 3.0 :: Import Questions Into Flash CS3

Apr 2, 2010

I'm making a sort of Quiz in Flash with AS3. I know its possible to import the questions + answers with Notepad, XML or even PHP. But I dont know where to start. Can somebody help me out? I allready searched for good tutorials that can help me out but I cant find something usefull.

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

ActionScript 2.0 :: Shuffle Questions Rather Than Use Random?

Aug 13, 2004

I have made a quiz which has 20 questions. 15 questions are asked at random. However, being at random some questions are repeated. How do I shuffle questions rather than use random?

View 4 Replies

Professional :: Random Frame Choice With No Repeat?

Sep 1, 2010

I am currently working on a flash game and I only have one major problem left!  I have a series of questions that are each their own movie clip in flash.  I have 13 different questions and thus 13 different movie clips, one for each. The issue I am having is thisDuring the course of a game sometimes a question will repeat itself, and I dont want that. I have tried to make the question selection random and without repeat but have only succeeded with the random part at this point.This is my code for for frame 1:

function randFrame(cFrame){
goFrame = random(11)+2;
if (goFrame == cFrame){

[code].....

View 25 Replies

ActionScript 1/2 :: Use Button To Select Combobox Choice?

Jun 13, 2011

I have a combobox (called "style_cb") and as you might have guseed you can use it to select a "style".The site also has pictures and I'd like users to be able to click the pictures (which are buttons) and have the comboboxautomatically set to that option.So, if the options in the combo are "oranges, apples, pears, cherries" and the pictures are of the same fruits,then clicking on a picture of a fruit (let's say "cherriesBtn") would set the combo box to that option.

View 1 Replies

ActionScript 3.0 :: Map Choice / Scenario With Dictionary + Arrays?

Apr 22, 2011

I am trying to create a scenario type quiz. The student's choice at each question point will take them to a new part of the scenario. So I guess it's a custom story based on student choices.

Anyway, first I am trying to make an authoring tool for this that will allow the scenario creator to graphically map out the scenario. So file icons are created (each representing a step in the scenario) with a number of targets as children (representing the choices). The targets are how the author draws lines from choices to corresponding files. When you click on a target I need to record which choice that is (choice1, choice2, etc) and draw a line from there to the file which the choice must lead to I need to record the name of that file. So, I was thinking that I would use dictionaries since they can be indexed with objects. One dictionary for the files, and one dictionary for the choices in that file.

dict1 --> dict2 --> array
file --> targets --> choice number to next file correlation

But I am having the hardest time getting anything to work. Am I going down the right path or should I change my approach?

View 2 Replies

ActionScript 2.0 :: Simple Multi Choice MC Buttons?

Jul 7, 2011

This is part of a large quiz I am building. The three choices here are part of a group of three from which you should only choose one. If so the other two are enabled=false.I can't change the method only modify since it is part of a much larger app that is runnung fine. So no radio buttons or codeing on maintimeline.

If you run the attached simple FLA and select the first choice you can see the enabled=false that is on the voted and pass framesworks fine, however if you choose the second the first is only disabled and the third is enabled and as logic would have it if you choose the third the first and second are enabled.The idea is to make it so the user can only choose one the other two are disabled while still having the choice to deselect.

View 0 Replies

Professional :: Go To A Frame Based On Radio Button Choice?

Apr 24, 2011

I have created a movieclip that is simply asking a question and the user chooses from a list of Radio buttons.I have set this up and it works fine, but I cannot figure out how to set up a "Next" button or a "Submit" button that, depending on the radio button choice made, the user goes to a specific frame or label.I bought the Adobe Flash CS5 bible, but there seems to be little information on controlling Radio buttons, only how to set them up to test.

View 1 Replies







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