Actionscript 2.0 :: XML - Answers Only Load The First Time The Swf Is Opened

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


Similar Posts:


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

ActionScript 2.0 :: Window Opened At The Time Of Attaching Any File To Mail?

Feb 28, 2005

I am creating just small media player which functions like play, stop, volume slider etc. In this I have to give full path for playing a song. I want to open the window (like window opend at the time of attaching any file to mail).

View 1 Replies

Flash - Create A .swf File That Will Simply Load A Webpage In An IFrame Once Opened?

Sep 26, 2010

what is the code needed to create a simple .swf file that once double-clicked on opens and all it has inside it's window is an iframed website (scrolling and resizing are optional), basically a simple flash mini-browser if you will, with no navigation features of any kind just the ability to click inside and maybe refresh the page...

View 2 Replies

ActionScript 3.0 :: Create A .swf File That Will Simply Load A Webpage In An IFrame Once Opened?

Sep 26, 2010

I simply would like to know is it possible and then what is the code needed to create a simple .swf file that once double-clicked on opens and all it has inside it's window is an iframed website (scrolling and resizing are optional), basically a simple flash mini-browser if you will, with no navigation features of any kind just the ability to click inside and maybe refresh the page...

View 7 Replies

ActionScript 3.0 :: First Time Load A Miracle Second Time Load A Nightmare

Sep 20, 2011

I load an external movie fine with:
 
f_btn.addEventListener(MouseEvent.CLICK, finteractiona);
function finteractiona(event:MouseEvent):void{
var loadera = new Loader();

[Code].....
 
It takes 2 clicks to close (or unload) Why?

View 10 Replies

ActionScript 3.0 :: Interesting - Looking For Answers?

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

ActionScript 3.0 :: Multiple Answers Using Checkbox?

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

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

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

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 :: Make Selected Answers Remain?

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

ActionScript 2.0 :: Keeping Answers To Two Decimal Places?

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

ActionScript 2.0 :: Prevent User Enter 2 Same Answers

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

ActionScript 2.0 :: Make The Correct Answers Appear After 5 Seconds?

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

ActionScript 2.0 :: Create A Flash Questionnaire With A YES Or NO Answers Only?

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

ActionScript 2.0 :: Make New Array From Previous Answers?

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

ActionScript 2.0 :: XML Quiz Array Answers With Different Values?

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

ActionScript 3.0 :: Drag And Drop - Checking Correct Answers

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

ActionScript 3.0 :: Checking Answers In A Math Random Question

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

ActionScript 3.0 :: XML Quiz With Correct Answers - Arranging Within Array

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

ActionScript 3.0 :: Make 20 Questions And The All Of The Answers Appear In A Random Order?

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

ActionScript 2.0 :: Making Quiz Where User Type In Answers?

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

ActionScript 2.0 :: Make A Variable Have Multiple Answers Attached To It?

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

ActionScript 2.0 :: Popup Window With A Question, And Four Answers With A Button Next To Each Answer?

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

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.

[Code]...

View 11 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 :: Add Values From Groups Of Radio Buttons And Show The Answers?

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

Professional :: Interactive Quiz - Three Questions That The User Must Answer With Three Possible Answers In Frames 3,4 And 5?

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

Professional :: Make Drag And Drop Work On A Check Answers Button?

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







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