ActionScript 3.0 :: Import Data From An Xml File And Use It In A Quiz Program?
Jan 19, 2010
I am trying to import data from an xml file and use it in a quiz program. currently the quiz program uses an array like so:\
wordList = ("John,Susan,Mary,Margaret,James,Sam,Ursula,Nelly, Peter").split(",");
My xml file is in the form: <list><word>John</word><word>Susan</word><word>Margaret</word><word>James</word><word>Sam</word><word>Ursula</word><word>Nelly</word><word>Peter</word>
[code]......
View 2 Replies
Similar Posts:
Jan 11, 2012
I guess I'm trying to create a multidimensional array. I'm trying to make a quiz program where each array entry has a: question, 4 answer choices, and the correct answer choice key.I wrote it in ActionScript 2 but I want to convert it to ActionScript 3 and I am lost on how to do something similar.I couldn't find any similar examples to the code I wrote.preciated.
ActionScript Code:
function mulChoice(question, choiceA, choiceB, choiceC, choiceD, correctChoice) {
this.question = question;
this.choiceA = choiceA;[code]....
View 9 Replies
Sep 20, 2006
Who can tell me how to import the char " &" from a text file?
View 1 Replies
Mar 2, 2011
My supervisor is interested in showing certain data within a dynamic map and this data must be fed from an Excel file. I was thinking I may have to use some service to convert the XLS to a CSV file, but if there's a direct way to do it with AS3 I can skip that step. The Excel file will be updated regularly. Eventually, she wants this movie to allow her to modify the Excel file as well.
View 3 Replies
Jan 22, 2009
I want to know how to import data from an xml file, but I can't figure it out. The tutorials I take aren't clear enough and I just need someone to talk to.If there is someone out there that knows how to read data from an xml file for AS2.0 and is willing to help me, please send me a message at:
AIM: Akskater100
MSN: Akskater009@gmail.com
View 13 Replies
Aug 18, 2009
I`m using flash cs3 for my works , but i have one problem!when i use File=> Import=> Import to Library... or Import to Stage...the flash environment becomes terminated.I changed my flash version to CS4 and I have this problem again.
View 2 Replies
Jan 24, 2011
I am going to be writing an app in flash builder and I want the ability to import CSV data into an SQLite database in Adobe Air/flashbuilder.
I have never done anything like this and am not totally sure where to start.I will want to do some manipulation of the data before I reinsert it. So really I need to know what steps (classes and functions) I need to use to parse the data from a CSV file into an array that can be manipulated in actionscript?
View 2 Replies
Jan 22, 2009
I am really new to php. I have an AS3 file which records user inputted data and stores them in variables. The only thing i know how to do is how to email those variables using .php. Well I want to be able to export the data to a csv file from the flash file and later want to import it back to the flash file.
View 1 Replies
Aug 25, 2010
Is there a way to imprt a python program into flash, so that you would get what you would see in python, but in .swf file (I'd like to make a text-only game for Kongregate)
View 1 Replies
Jun 6, 2011
I'm making a flash game and need to use part of a java program. Is there a way to import the java program into flash? Only a section of the game will be using the java program, so I don't want to import the flash part into java...
View 1 Replies
Jan 21, 2010
Can you tell me how to import form a single xml file, data to multiply text fields. if you can, tell me what is the AS code that imports the xml file in flash, than how to link the different txt fields to the difarent modules from the xml and what is the xml structure.
View 25 Replies
Nov 22, 2006
At my last job I was teamed with a developer to make this stuff work, now I'm on my own and have been tasked with creating an e-learning suite that can track quiz data. Flash Templates will not work as there is some deeper interactivity we're creating. I've tried deconstructing the quiz templates, but that has proved very hard. The actionscript manuals have, as usual, proved not so useful; My personal design book library goes only to 5. Is there somewhere I can go, or a book you could recommend to either learn the easiest way to script data tracking for a (very) custom quiz, or find a few source files I can tear apart and reconstruct.
View 3 Replies
Jan 5, 2005
Im 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]...
View 2 Replies
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
Mar 19, 2009
I have a little quiz, where at the end the results are calculated and the test takers are taken to a results screen which calculates their results.
I have AS3 code creating the message screen, and the score is calculating ok. I want to capture the users name on the results page, and this is not working. I have attached the code which calculates the score and where I added the instance name of the test box when they login. I get an error when I publish. The error is "Access of undefined property name name_text"
obviously this is not how to capture that information, but not sure how to do it. Again, I have a text box with the instance name of "name_txt", and I am trying to capture that data on a results screen using AS3.
Code:
feedback.text = "Congrats" +name_txt+ "on finishing the exam!
Your score is "+Math.round(score*100)+"%
You may now close the exam window.";
View 1 Replies
Oct 26, 2006
I have the Following requirement and I do not even know where to begin.I have created a map of a Country and on the map are several towns and cities, obviously easy enough so far.So, for example, say the XML data provides information of ten different pieces of information, one might be say Lightning Strikes.
I want to be able to create a dynamic map that adds a Red dot beside the City, that represents a record of the lightning strike. Or ,if required a larger dot might represent 10 lightning strikes if it is a very regular occurance.The main objective is to provide an up to date visual representation of which location is more active.I don't mind experimenting or following a link or guide to work it out,
View 1 Replies
Feb 11, 2011
Currently learning flash and what I would like to do is capture information from another flash program if thats possible?Basically im playing a persistent browser based game written in flash and on mouseover of a tile in the world map it displays some information, specifically in game co-ordinates and details of whats there.Is it possible to capture that with a flash program? Or is that beyond the bounds of flash? I know it can be done in other languages but its been years since I've done any programming.
View 2 Replies
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
Mar 16, 2012
I have been creating an e-learning package using RapidIntake software. They have a quiz file that is used throughout the course. I've downloaded the source files to try to change the font size of the checkbox component but its not working the normal way?I've tested it by putting another checkbox in the middle which you can see in my picture. But the same code isn't working for the original checkboxes.The code I've used is est.setStyle("fontSize",16);Checkbox2.setStyle("fontSize",16);The test checkbox is the one in the middle thats working.
View 6 Replies
Nov 16, 2006
I am creating an interactive cd which basically runs a blank projector which then loads in various swf files from fscommand folder as and when required.
Part of the CD is a quiz - created using one of the standard flash templates. When this is loaded into the main projector as a swf file it runs perfectly until it gets to the "results page" - at this point it returns the blank templates e.g Answered = 0.
If you play the swf file on it's own it works fine. If you play the file as a projector on it's own it works fine too.
The problem only occurs when it is loaded into the main projector on a level above the root.
View 3 Replies
Jan 2, 2011
I am working on a Flash game that uses 2D polygon collision. It seems to me that I could sketch the 2D collision around my objects using the pen tool, and make it invisible by putting it on a separate guide layer.
how to access the data on that layer - preferably as a set of points - from ActionScript.
View 1 Replies
Mar 11, 2010
I'm doing a quiz system now, which allow user to type into his name---start quiz---choose a correct answer from questions---account the result----export an excel/word/txt file of different users information and result on backstage.[URL]..now i just duno how to allow user type his information into it and how to export an excel or word file after quiz taking. does anyone did tat be4?
View 1 Replies
Dec 10, 2003
There are two buttons and a dynamic text box in my flash. The two buttons are start and end button. When you click the start button, you will find the random data in the dynamic text box changing constantly until you click the stop button.
View 3 Replies
Dec 9, 2008
I have a tricky problem. I've been working on a flash quiz that uses a xml file to generate questions in a random order. Got that working fine. The Fla parses open the file and loads the nodes into dynamic text boxes.
[Code]...
View 1 Replies
Nov 4, 2008
Im trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..
// CLICK to Exit
exit_Btn.addEventListener("mouseUp", goExit);
function goExit(evt:MouseEvent) {
fscommand("quit");
};
View 9 Replies
Sep 29, 2010
Is there a way to start an unrelated program (such as Window's media player) from inside of a flash program?
View 2 Replies
Mar 11, 2010
How to import XML data
View 3 Replies
Jul 21, 2011
Like if I were to take a non flattened, layered .psd and load it in using as3, would I be able to get information about each layer in the .psd, such as position, name of the layer, etc.?
View 1 Replies
Jan 28, 2010
I have started a installation locater, I have a map of UK which will have the hotspots(button) put on each county, once someone clicks on one of the counties it will bring up a list of 3 installers, once someone clicks on an installer it will bring up their contact details.
View 1 Replies
Aug 23, 2011
How can I save data to a text file and also append a record to data in an existing text file? I've used Authowrware previously and it was quite easy to create a large string of data (a comma separated list) and export that to a text file (and create the text file if it didn't already exist). I could then easily append additional rows of data (records) to the text file. We want to build a questionnaire that will store the data locally on the computer in a text file. Each record may have a few hundred data points in a comma separated list.
View 8 Replies