ActionScript 2.0 :: Magic 8-ball - Answers Array To Store All The Answers And Then Call Them At Random Into The "answers" Field?
May 24, 2004
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?
View 7 Replies
Similar Posts:
Apr 9, 2012
My project is creating a questionnaire in Flash and then storing the user answers in an array or a database for later analysis. although i was excellent in coding when i was in college, recently i forgot many parts
View 1 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
Dec 13, 2010
i need codes for checking answers in a math random question... here is my code:
[CODE]...
>> i need codes if choiceA.text is selected, if choiceA.text is correct what is the code that it will add 1 point to score.text..
View 0 Replies
Jun 8, 2009
i have a quiz with 20 questions and all of its answers in 2 different arrays. I want to know how i can make those 20 questions and the all of the answers appear in a random order when anyone takes the quiz.
View 6 Replies
Sep 22, 2007
I have sections with questions and answers which I can get. But, I need to save each section into new array and tally all the final scores.The screen will show the section score of current section that was just completed and the final score.I know the code has lots of problems - attached.For the total scores the dynamic text boxes var's are totalnumcorrect, totalnumIncorrect, totaluserScore.For the section score the dynamic text boxes var's are numcorrect, totalnumIncorrect, totaluserScore.
View 1 Replies
May 20, 2009
I have this project where I have a quiz template that I am using(as2) and I have everything exactly the way I want it except.that I need for the individual questions to hold a different value from one another.
for example
Question 1 = 10 points
Question 2 = 20 points
so on and so forth
right now I have it so they are an equal percentage of the total (ie 10 questions all are worth 10 points)and I need to change thatunfortunately I am still teaching myself AS but even more unfortunate for me is that I am learning AS3 and this template is AS2 I also have not done much in this vein I have been concentrating more on UI kind of stuff and less on the math side also it makes no difference to me if this is done in AS or XML this file will not be continually updated so it can be a one time deal
View 5 Replies
May 18, 2009
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]
View 7 Replies
Sep 21, 2009
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?.
View 3 Replies
May 16, 2011
the user is able to mark 2 checkboxes out of #cb's.
how do i make sure he can mark EXACTLY 2 cb?
Code:
addfunction();
var total:int = 0;
var i:int;
[Code]....
View 2 Replies
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
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
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
Sep 6, 2009
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.
View 5 Replies
Jun 30, 2004
flash and I am trying to multiply two numbers where one is a decimal The result are answers with one, two and three decimal places depending upon the numbers being multiplied.
View 9 Replies
Feb 24, 2009
I'm doing this project for a school competition, I'm nearly done but I'm having some XML trouble. I have a custom quiz, which is an external swf loaded into another swf on a certain button click. The Questions from the quiz always loads properly, but the answers only load the first time the swf is opened. Every other time, the "Answer Placeholder" text shows up instead. This can be seen at [URL], scroll over the arrows on the side of the page, and then click on "Quiz". It may work the first time, but after a page refresh, just the placeholders again.
[Code]...
View 3 Replies
Jun 30, 2004
my question is to count how many correct answer the user will enter. if the user enter the same correct answer twice,the 2 same answers will not be count and the other 2 answer will be check whether correct or wrong. If the next 2 answer is correct markk will be add. Take note that i have 5 answers for this question but the user only has to enter 4 of the answers only.
View 1 Replies
Sep 19, 2005
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].....
View 4 Replies
Feb 22, 2007
how I can create a flash questionnaire with a YES or NO answers only, and then depending on the answers it direct to a certian page/ results.
If someone could point me to a website that provides some free source that would be great, or provide sample code?
View 1 Replies
Feb 24, 2011
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;
[code]......
View 5 Replies
Dec 21, 2011
I am making a quiz what I want to do is: when the user types in the correct answer a tick appears and when they type in a wrong answer a cross appears I want this to happen on a single frame. How to make these type in boxes and how to make the above stuff happen.
View 1 Replies
Sep 13, 2004
How do you make a variable have multiple answers attached to it?
example:
workPages = page2_mc, page5_mc, page6_mc, page7_mc
I tried this but it only used page2_mc and an array didn't work.
View 3 Replies
Aug 17, 2009
I'm creating a sort of guessing game/trivia with AS 2.0. I have a popup window with a question, and four answers with a button next to each answer. The question and answers are dynamic text that are set by clicking on a "question" button.I was thinking I could do was click an answer button, which sets "current answer"... compare that with "correct answer" and do something? If it doesn't match, set the dynamic text to "wrong answer". If it's correct, then gotoAndStop(something)... I can get the answer buttons to trace their values(current answer) as I click on them, but when I try and goto () or do something based on these values (true) it seems just do whatever is in the if statement... not based on the answer being correct?Hmmm... like if I say: if (This is true)Not sure if I'm explaining this properly. But basically I have a popup window with a question. I have four answers, with buttons to select choice. I want to compare the choice/buttons pressed with a variable "correct answer" and then do something.
View 4 Replies
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.
[Code]...
View 11 Replies
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
Mar 15, 2010
I have eight groups of radio buttons. The student needs to pick on button from each group. It is a personal intrestet survey. So each of the groups will have a button with related values. I need to add the values and show the results.
how to add values from radio buttons and displaying the answers. this is what I have managed so far:
[Code]....
View 7 Replies
Feb 10, 2010
For my project i am creating a quiz on the Romans. There are only three questions that the user must answer with three possible answers in frames 3,4 and 5.I want to know the code that would help me to allow a Jpeg (an evaluation of the answer given on each frame) to be placed on frame 6 ready for the user to receive feedback for each answer they have given. So when the user selects an answer, the corresponding jpeg to that answer is placed ready on frame 6 for their arrival after they have answered the third question.
View 1 Replies
Feb 20, 2012
I ve got a drag and drop code working, but what I really want to do is have a check answers button that tells the user, you have none correct, or two correct or all wrong... I have one target area, and 3 correct answers (out of 7) so I would like to let the user put as many ansers on the target as they want and then check if they have any correct, also a reset code would be nice to put everything back where it started... I tried to break my code up but the events then went mad, Here is what i have so far, it works instantly and lets crrect answers stay and incorrect bounce back..
stop();
yes1.visible=false;
allcorrect.visible=false;
doit.text="drag over the words that mean Vision";
[Code].....
View 1 Replies
Jul 26, 2006
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.
[Code]...
View 2 Replies
Jul 11, 2009
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?
[Code]...
View 3 Replies