ActionScript 3.0 :: Setting XML Based Exam To Where There Are Two Correct Answers In A Question
Apr 9, 2009
I have an exam which pulls in questions from an XML file and to indicate what the correct answer is you would indicate in the XML as such:
[Code]...
There is one question, that is structured so there are two right answers, but when I add correct="true" to both answers I want as right only one is calculated correctly in the scoring. I thinking I need to make an adjustment in the code that pulls in the XML, but not sure where. Here is the AS code.
I'm making 8 input boxes with 8 different answers. Users can key in their answers in the input boxes. The order of the 8 answers will not affect their results. However when users get the wrong answers, the wrong answers will be deleted. My question here is, when the wrong answers are deleted automatically, how do i make the correct answers to appear by themselves after 5 seconds? Below is my code that i put on a "check answer" button.
on(release) { answers = new Array(8); answers[0] = "professional selling";[code].....
So I tried to make an exam and I came up with a few issues. The exam is located here:My third problem is that after I add all the questions (multiple choice/checkbox) on each frame, how does the submit button have to be in order for a member to submit his exam.
I am after finding out which drag and drops are correct, so I can score accordingly rather than just have a single score throughout. I need to know if the circle was dropped correctly or the square etc. I'd ideally like to have this interaction as a command on a button, but my AS3 is letting me down
var score:Number = 0; var startX:Number; var startY:Number;
I need to put together a really simple flash Quiz for this project I am working on and I am having a hell of a time figuring out a few key aspects.
1. When working with an array and an xml file, how can I assign the "correct" answer if a user selected the wrong option. Ideally I would love it to say for example " sorry, Egyptians was the correct answer" but would settle for " sorry, 3 was the correct answer" if that is easier to arrange within an array.
2. How can I make it so it marks your first answer and only your first answer (as opposed to how it is now where if you guessed wrong you can keep on guessing until it is right and it will notice the right answer and ignore the wrong)? Files attached here [URL]
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.
I'm using AS3 in timeline. I'm working on a multiplication game. The idea is to count the number of correct and incorrect answers and give the user a final count. I have several dynamic text boxes: box1 and box2 will multiply each other.box3 = input box; user inputs answerbox4 = message displaysbox5 = correct1; displays correct countbox6 = correct2; displays incorrect count buttonsbt_1 = checks answersbt_2 = resets problems PROBLEM:I CAN'T GET BOX6 COUNT THE INCORRECT ANSWERS. HOW CAN I FIX THIS PROBLEM?
I've got an input field called "question" where you can type whatever you want, an ASK button called "ask" and a response field called "answer". Once you enter a question and hit the ASK button I want flash to randomly reply in the "answer" field with YES, NO, MAYBE, DEFINATELY etc.
Do I need some kind of answers array to store all the answers and then call them at random into the "answers" field? Am I on the right track?
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?
I have an xml doc that has 6 categories that are colors and 4 questions that fall under each category. My question is I'm trying to create a quiz that will grab a question/answers based on a variable between 1-6 from the (6) categories in the xml doc. But the kicker is I want the user to have to choose from a different category if the 1-6 variables are different. And I need to walk down and grab a different question if they have been to blue before or maybe just a random question from the blue or green section.
Using Flex 3.2, I have a object which extends a TitleWindow. In this TitleWindow I have an AdvancedDataGrid.
On creation of this object, I pass it 2 lists, one full of data to display, and the other I pass an array of column definitions. This allows me to, at runtime, create the correct columns and define the correct display attributes for each column (e.g. booleans will show up as checkboxes, and dates are formatted in a specific format (coming in from an XML feed in a variety of STRING formats where nulls are a possibility)
The problem is that the default sort, being based on string, doesn't work 100% of the time and even when the format is one that would be sorted nicely, it fails when nulls are involved.
The above problem would be easily solved using a sortCompareFunction, but the fact is when you set the sortCompareFunction of the column, it seems to require you to hardcode in the column name into the function.
for reference here's the function I'm using to create the columns:
private function setupGrid():void { var localcols:Array = new Array();
I am quite new to actionscripting and need to create a flash based quiz.The user will have to circle the correct answer in the quiz.I do know of drag and drop function but didn't know how to create circling function.
I have an image gallery app that has a slider to control the width of the thumbnails that ranges from 80 to 1024. As you move the slider the thumbnails width changes to effectively scaling the image between 80px and 1024px. Below the thumbnail is some information about the image such as the name, size, dimensions, etc. There is also a set of icons that do various tasks (delete, edit, copy, etc). All of this information is located within a VBox.The problem I am having is I would like to have the VBox hide when the width of the thumbnail reaches 150 px or below. This I have been able to accomplish with the following code:
<mx:VBox visible = "{thumbnail.width > 150}">The issue is that while the information within the VBox is now not visible, the real estate it takes up is not released. In other words, there is now a blank space the exact size of the VBox. What I'd like to do is to be able to release this space. I know this is probably something simple that I'm overlooking, but today my brain is just not working,
[code]I am trying to define a DataGrid such that the row nodes will represent new rows in the DataGrid and the column nodes will be used to auto-populate the DataGrid's columns. I am having a problem setting the dataField for each of the DataGridColumn ojects created.The DataGrid is created but the cell values for row 1 are all 0.51 and row 2 are 0.61.
I'm making a game that is tightly integrated into a rest service. I want to set variables based on what the server tells me the variable should be.
[Code]....
but then the parseUserRank() method can't directly return the value to userRank, so there would have to be an event dispatched when its available, then update then finally update the variable value....
I have 8 dynamic text boxes in my scene. What I need to accomplish is setting the value of the text in the text boxes to "Ready". The number of dynamic text boxes that need to have their value set to "Ready" is based on the variable "myVar1". Which dynamic text box to begin with is based on the variable "myVar2". In the scenario below mytextbox4, mytextbox5, and mytextbox6 should all be displaying "Ready" when done.
I started preparing for Flash Cs3 Adobe ACE Certification exam. But I don't have enough information on this. I just started practicing and reading completely the whole ebooks what I have. I don't know the exact pattern of the questions. So can you please provide me the links/sites or any dumps regarding the question papers/sample tests etc.
I have an application which pulls in data (questions) via XML and randomizes them. Right now if there is 50 questions in the XML file, 50 questions are displayed and randomized in the application. I am trying to figure out how to limit the randomizing pool so that only 35 questions display(even when the XML file has 50 questions) or something like that. My current code which brings in the file and randomizes is below.
Loads the XML data Code: package exam { import flash.net.* //to create URLRequest and load XML file import flash.events.* //for Load events //import flash.display.* //for testing purposes - remove when testing complete //This class downloads the XML document, and then inserts info into arrays and variables. [Code] .....
I tried to make an exam and I came up with a few issues. The exam is located here: [URL]. One problem is that I don't know how to make the login and input usernames and passwords. How do I make the Start Exam button work so when an appropriate username and password are entered it takes you to the test.
I'm going to make a counter that will count the correct answers of an exam questions.The counter will collect only the correct answers from each frame.
Here is the first frame: var counter:Number = 0; var correctAns:Number; correctAns = ans1_mc.alpha; function clicked1(event:MouseEvent):void
I'm trying to turn a 100question paper exam into a digital version, but I keep getting problems.The names are in dutch, my appologies, but I'll explain a few;
eind = end vraag = question Fout = false Goed = true
I'm trying to get the score to be calculated per page. Being P1, and at the end to calculate all pages into one 'eind_score'. I'm just a student in this but not even our supposed 'expert' doesnt know.
I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?
I've created an entire website from one .swf. No dynamic loading of other .swfs, or external content etc. Simply a few different buttons that navigate to different frame-labeled areas of the .swf via gotoAndPlay, etc. There are 8 different "areas" of the timeline to go to, each with it's own set of movie clips for that area.
As far as I know, the website works great on all computers and browsers with current Flash players. But I got a call from one of the owners of the business I created the site for and he's having an interesting problem: The preloader completes and takes him to the first area. He can see areas 1-4 just perfect. But when he click to go to area 5, less than half of the movie clips load in what seems to be a random order and then the rest of the .swf (beyond that point in the timeline) can't be accessed at all.
This could be common, but as far as I know, I've never heard of it. He's had someone at his site who is apparently "fluent in computer" look over his internet settings and cannot find any issues.
Anyone ever heard of this or know what I should suggest he try besides updating his browser and Flash Player?.
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.
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 ?
I have a flash quiz that I created. The file is an external swf loaded on top of another flash swf. The quiz is all radial buttons and drop down menus. Once the user choose which answer they feel is correct they click submit. Before they click submit they have an option to close the window. What i want to happen is if they close that window and return I want those selected answers to remain or even if they submitted before; i would like for those answers to remain.