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


Similar Posts:


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 :: 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 :: 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 :: Increase & Decrease Operators - Count The Number Of Correct And Incorrect Answers

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

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 :: Removing Correct Answers From Array In Of Random Quiz Questions In Xml Quiz?

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

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

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

ActionScript 3.0 :: Get The Depths Of All The Blocks To Be At The Correct Levels At The Correct Times

Dec 30, 2009

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?

View 4 Replies

ActionScript 2.0 :: Make Images Gallery Into Area Correct Position

Dec 19, 2011

I'm doing flash project slide images but i don't know how set images into area correct position. And textfield load file .txt.

[Code]...

View 3 Replies

Figure Out The Correct Software To Use To Make A Video For The Front Of Our Corporate Website?

Mar 18, 2010

I'm new to flash and have been trying to figure out the correct software to use to make a video for the front of our corporate website. I want it to look like what is found on www.athenahealth.com, but can't seem to find the software the does this. Is it Adobe Flash? I haven't been able to figure out how they make it with viewer controls (elapsed time, pause, etc) and embeds seamlessly in the website (as opposed to the videos that pop up in a lightbox).

Can anyone provide any insight into the software used by Athena Health on this site?

View 5 Replies

ActionScript 3.0 :: Make A Function Lasting 10 Seconds?

Nov 16, 2009

How would I make a function last 10 seconds? For example, the function would stop after 10 seconds. I know you have to use timers, but can't quite figure out how to accomplish this.

View 9 Replies

ActionScript 3.0 :: Make Invisible For X Seconds Upon Click?

Sep 30, 2010

I am trying to write a program in which 2 random pictures appear on the screen, and when you click on a specific one of the 2, the other disappears for 250 ms, and then the whole thing starts over with 2 new random pics. I have everything working the way I want EXCEPT for the vanishish-for-250-ms part.Specifically, the program is supposed to display 1 picture from 1 group and 1 from a 2nd group, and when you click on the pic from group 1, the group 2 pic is supposed to vanish for 250 ms. Each group has 16 pictures, so the code as it stands now basically randomly picks whether the group 1 pic will appear in movie clip #1 or #2 (faces1_mov and faces2_mov), randomly pics a group 1 pic, displays it in the movieclip it randomly chose, and then puts a random group 2 pic in the remaining movieclip, so the program has to know which clip has the group 2 pic in it and make it disappear when the other clip is clicked.Here is my code:

ActionScript Code:
import flash.display.MovieClip;
import flash.utils.Timer;

[code]....

View 1 Replies

ActionScript 2.0 :: Make A Circle Rotate Over 6 Seconds

Feb 27, 2008

I want to make a circle rotate over 6 seconds. Does anyone know how to code this in AS 2.0 so that it happens over the 6 seconds. Basically I want the twelve oclock position on the circle will rotate all the way around back to the top over the 6 seconds.

View 2 Replies

ActionScript 2.0 :: Make Popup Mc Disappear After 2 Or 3 Seconds?

Apr 9, 2008

I would like to know what the best way to implement the following feature is...

I have a popup dialogbox that comes up when the user clicks an object on stage...I want this popup to disappear or "close" if the user does not click the "close" button after 2 or 3 seconds...any takers?

View 1 Replies

ActionScript 3.0 :: Make It Wait For A Couple Of Seconds?

Feb 23, 2010

I'm rather new to AS3 and have been tasked with a project, the project requires reading in values from an XML file created by PHP, this works fine if the XML file is available, and is just being updated by PHP, however, when flash calls the PHP page that creates the XML file for the first time, it doesn't give PHP enough time to make the XML file.

View 14 Replies

ActionScript 2.0 :: Make Button Wait 10 Seconds Before It Does The GetUrl?

Mar 24, 2010

How can I make this button wait 10 seconds before it does the getUrl?

Code:
process.onRelease = function(){
getURL("/our-process/brand-building","_self");

[code].....

View 1 Replies

Professional :: Make Logo Appear After 10 Seconds Of Loading The Background?

Jul 4, 2010

I have an animation Logo flash movie which I want to appear after 10 seconds of loading the background image (Panel_mc)?
 
I am using Actionscript 3 to load the Logo.swf movie. The following is the whole code that I have on my action script page:
 
stop();import fl.transitions.Tween;import fl.transitions.easing.*;
var PanelTween:Tween = new Tween(Panel_mc, "y", Elastic.easeOut, -400, 20, 5, true);
var l:Loader=new Loader();addChild(l);l.load(new URLRequest("Logo.swf"));l.x = -20;l.y = -20;
l.contentLoaderInfo.addEventListener(Event.INIT, growLoader);
function growLoader(evt:Event):void {     l.width = 320;     l.height = 185;}
 
Note: I need it because first the background will animate so no one can pay attention to my Logo. Once the background stops animation, My logo needs to be start (animation)?

View 3 Replies

ActionScript 1/2 :: Make 3 Movieclips Visible For 7 Seconds And Then Disappear?

Jul 12, 2010

When on frame 10, make 3 movieclips visible for 7 seconds and then dissapear? How do I write the code?
 
I'm not sure how to put things together.
 
clearTimeout(mc4_mcT);
mc4_mcT=setTimeout(mc1_mc,5000);
mc1_mc._visible = false;
mc2_mc._visible = false;
mc3_mc._visible = false;

View 2 Replies

ActionScript 2.0 :: Make This Button Wait 10 Seconds Before It Does GetUrl?

Mar 24, 2010

How can I make this button wait 10 seconds before it does the getUrl?[code]...

View 6 Replies

ActionScript 2.0 :: Make Dynamic Textfield Count From 0 - 50 In 3 Seconds?

Sep 4, 2010

Im trying to make a dynamic textfield count from 0 - $number (lets say 50) in 3 seconds. So that when I hit 3 seconds then I hit 50.So what im basically doing is calling a function with setInterval and im calling the function every 60 milisecond (3x1000 / 50).

The textfield is following a movieclip (percentagebar) which im tweening from one position to another in the same amount of time - 3 seconds.What im seeing is that the movieclip reaches its end position before the count on the textfield is done.Is this because the mc tween relies on the FPS and will therefore end quicker?And what can I do to make my textfield count end the same time as the tween?

ActionScript Code:
//Defining end number
var pComplete:Number = 50;
//Defining count var
var pCompleteTimer:Number = 0;

[code]...

View 7 Replies

ActionScript 2.0 :: Make Miliseconds Reach 12 Instead Of 60 Before Seconds Increment?

Apr 5, 2011

i want to make miliseconds reach 12 instead of 60 when the seconds start to increment. This is because I want miliseconds to represent months and seconds to represent years in my simulation.

View 2 Replies

ActionScript 2.0 :: Make An Image Appear (a Button) After A Delay Of Say 15 Seconds?

Apr 18, 2006

How can I make an image appear (a button) after a delay of say 15 seconds?

I need the image to display after 15 seconds, and then stay. I have read to use gettimer or setInterval, but I'm not sure how to do it in my particular case. In very rough terms, I need something like this:

onEnterFrame:
setInterval to 15000 and then
_root.button.gotoAndPlay(2); (this will display my image)
clearInterval

View 3 Replies

ActionScript 2.0 :: Make A Pause For 20 Seconds And Then Play Next Frame ( 46 )?

May 13, 2003

The movie play's. At a frame, for example frame 45 I wanna make a pause for 20 seconds and then play next frame ( 46 ).How can I do this?

View 4 Replies

ActionScript 3.0 :: Make An Animation Of Around 12 Seconds Which Loops Continuously?

Oct 27, 2009

I am trying to make an animation of around 12 seconds which loops continuously, stop after 30 seconds and continue on mouse over.

I've been trying to do this using a timer, but get the feeling that this might be a seriously misled approach.

View 9 Replies







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