ActionScript 2.0 :: Reset Check Answer Button?

Oct 22, 2010

Frame one has three draggable movie clips and three finishing locations (one clip per location), it also has one a button (Check answer)A user can drag any of the three clips to any location and then click Check Answer.Check answer then runs an action that if the clips are in the right places, it goes to frame 2, if they are not, it goes to frame three where a Reset button is provided. In either case, a message is displayed.

On frame 3, I want people to be able to change the positions of the clips and select Check answer and have it check the answer again. Currently it's letting me move the clips, but even when I put them in the right places, it still tells me it's wrong.[code]...

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Button Is Pushed A Answer Is Displayed And On The Answer Frame?

Aug 27, 2010

I have a grid with 12 movieclip buttons. When a button is pushed a answer is displayed and on the answer frame, there's a button "click for more information".

That button points to information in a frame within the mc button. However, when I test it all the buttons on the root timeline appear on top of this information, covering it up.

Also, when you move the mouse while in this "further info" area, it disappears

View 1 Replies

ActionScript 2.0 :: If Statement To Check Answer?

Jun 29, 2004

The user needs to submit a dollar amount answer. They could write is several ways. I'm trying to accomodate it with the code below. It always evaluates it as the wrong answer (the else).

[Code].....

View 4 Replies

ActionScript 1/2 :: Click The Right Answer(s) Using Check Boxes?

Jul 6, 2010

As part of a flash 8 project, I have created a Quiz using Check Boxes.In Question 1, I have got 8 Ckeckboxes in 2 columns of which check boxes:- B, D. E, and H are correct answers.The rest are the wrong answers. However user may tick all the right ones and also tick couple of wrong answers (eg user mayWhat I want is when user selects only the correct boxes (B, D, E, H) answer equals 1 point (right answer).A, C, E, G equals 0 point (wrong).B, D, E, H and combination of other checkboxes equals 0 point (wrong answer).A, C, F, G and combination of other checkboxes equals 0 point (wrong answer).A, B, C, D, E, F, G, H equals 0 point (wrong answer).I need a method using actionscript 2.0 to work this out. I think I've worked out the first part where user selects only the correct boxes (B, D, E, H) equals 1 point, and if user only selects the wrong boxes (A, C, F, G) equals 0 point. But I can't work out other parts. I tried using logical || (OR), but does not seem to work properly.

View 3 Replies

ActionScript 3.0 :: Load Random Images With Question And Check Answer

Dec 1, 2011

I'm making a quiz in flash that loads random images with questions (50 in total) and I want to check if someone answers right (obvious). I'm using this script to check if you answer correctly:
PHP Code:
if (answers[randomnumber].selected){
score++;
}

The answers is an Array with the correct answers. The random number is this:
PHP Code:
var high:int = 50;
var low:int = 1;
var randomnumber:int = (Math.floor(Math.random()*(1+high-low))+low)
The .selected is because it uses radio buttons. But it doesn't work! For testing I modded it so that you get the same question every time and I answered the same every time (correctly) but it says that I don't have everything right?

View 5 Replies

ActionScript 2.0 :: Check User Answer By Checking Input Text Box

Jul 26, 2004

how do i check the answer that enter by user.... the marks is given by checking whether they user key in the keywords or not... i m thinking of using string method...but i not able to do it...

View 1 Replies

ActionScript 3.0 :: Reset The Display By The Means To Start The Motion All Over Again (reset Button)

Jul 13, 2010

Just new in forum and just new in as3 programming. All i want to do is to make some physics simulations (i'm physics teacher...). So i made my first sim with the following code, just to simulate a simple motion with constant velocity. It works ok, except the part i need to reset the display by the means to start the motion all over again (reset button). Then the motion starts but the traces of the previous motion remains on stage. I tried the null command (sp=null) but the sim could not start again because the sp nedded to be non-null...

[CODE]...

View 2 Replies

ActionScript 1/2 :: Make A Reset Button And Add Script To It To Reset All Of The Drag And Drop Movie Clips?

Apr 13, 2011

I have an issue with adding a reset button to my drag and drop movie clips.The problem is, if a student drags a movie clip to a wrong location on the SWF file I want them to be able to hit a reset button that would take them the same SWF that they opened and what would showup would a clear page for them to restart their drag and drop exercise.I know how to make the button for this just want the proper action script to be able for user to start over with no movie clip symbols on the page.

View 3 Replies

ActionScript 3.0 :: Get An Answer From Input Text Field And Compare It To The Correct Answer?

Jul 8, 2010

I am trying to get an answer from Input text Field and compare it to the correct answer.here is how my code look like:

//I have a confirm button here
confirm_button.addEventListener(MouseEvent.CLICK, ConfirmFunction);
//I have a correct answer as a String here
var correctans:String = "July";

[code]....

This will check if correct answer contains words in the answer from input text field.But that will result on if I key in "July is great", it will still link to the correct answer frame instead of wrong answer frame.I want the answer to be exact same as the correct answer.

View 4 Replies

ActionScript 2.0 :: Input Quiz - Check Input Answer Against Random Display From Array

Jan 21, 2009

I am trying to check input answer against random display from array. but sometime it trace not correct when it is correct this is the code i use

[CODE]....

View 7 Replies

Flash :: Check And Reset Variable On Main Timeline From Inside A Movieclip?

Feb 11, 2010

I'm converting an old AS2 file into AS3 (and trying to learn AS3 at the same time).A movie clip contains a number of different animated sequences and buttons within the application trigger these different sequences.The buttons are functional only when an animation has completed playing.

In AS2, I achieved this with a var called _root.animating which was initially set to "false" and switched to true when the animation played and switched back to false at the end of the anim sequence. The buttons checked this var when clicked. Here is some of the AS2.[code]...

View 2 Replies

ActionScript 2.0 :: When I Press On Answer Button, The Result Displayed Is NuN?

Aug 7, 2009

i am creating a maths quiz...There are 2 input text fields..The instance names of 2 input text fields are inputField and inputField02. There is one dynamic text field to display the result....The instance name of dynamic text field is resultField.

Code:
var a: Number;
var b: Number;[code]....

however when i press on answer button, the result displayed is NaN.What's wrong with the code?

View 1 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 2.0 :: Magic 8 Ball - Ask Button And Answer Response Field

May 24, 2004

I'm creating a magic 8-ball for my website, just a fun little thing to play with you know. 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 3 :: Button Text Appears At The Cost Of Knowing Which Answer Was Clicked?

Apr 5, 2011

The code runs fine, but the problem I'm having is that the text box that is suppose to go onto of my answer buttons is behind the button itself... however, if I change two lines of code around, the answer validation code doesn't pick up the which answer was clicked (it returns undefined). This is infuriating!Look for the line "//INSERT HERE." If I take the line, "var answerField:TextField = createText(answer,answerFormat,answerSprite,0,0,450);" and put it there instead, it returns the right answers (doesn't return undefined), but I can no longer see the text. I've included the createText function as well.

private function askQuestion()
{
trace("asking question...");

[code]......

View 2 Replies

ActionScript 3.0 :: Delete/remove A Movie Clip After The Wrong Answer Button Is Clicked?

Nov 20, 2009

How do I delete/remove a movie clip after the wrong answer button is clicked?

View 16 Replies

MX Can't Do The Reset Button?

May 7, 2009

i'm currently working on a drop and drag dress a doll game...at the same time i've created diffrent layers for some animations that can be done in frames...my problem now is that...how am i supposed to reset the game and return each pieces i've used on to their proper places?

i need the exact actionscript...ive even tried adding the same scene.but then it doesn't work.the scene doesn't stop looping...

View 1 Replies

Get Reset Button To Work?

May 28, 2009

When you click on the reset button, this error below comes up. If you can't find the button it is the navy colored rectangular thing in the lower left corner of page.[code]

View 15 Replies

Reset Button On Form Not Working?

Mar 20, 2009

I am working on a flash site that was done by someone else. I have never used actionscript before so I am sooo new at this. There is a reset button on the form so when people accidentally type in something, they can just click on the "reset" button and it clears all fields. The problem is that it's not clearing.This is what I have in the code for the button:

on (release) {
fullName = "";
address = "";
message = "";
}

The three (fullName, address and message) are the names of my variable when you select each input field. Where am I going wrong with this? Nothing happens when I click it.

View 2 Replies

ActionScript 3.0 :: How To Reset A Button Action

Oct 26, 2009

I use this script to go to an external URL (in a new blank browser window).

Code:
button4.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {

[code].....

View 3 Replies

ActionScript 3.0 :: Cant Reset Score With Button

May 7, 2010

I've been making this animation for a Uni project but i've come across some really annoying bugs which are stopping me from getting the top marks and I was hoping someone here could help!

-Cant reset score with button

-Can't move to next Scene

I wasn't sure where the best place was to upload the .fla so I picked mediafire.so far in my attempts to fix the reset score i've tried adding.[code]

View 2 Replies

Reset Button For Drag And Drop?

May 27, 2010

I am working on making a drag and drop activity. In Flash CS4 using ActionScript 3.0. It is essentially functional, but I would like to add a reset button to return all objects to their original positions.[code]...

View 1 Replies

ActionScript 3.0 :: Inserting A Reset Button?

Jun 22, 2009

I'm very new to actionscript and I managed to recreate the activity on this page successfully with different objects and 6 options instead of 4. [URL]However, I need to get a reset button in there so the student can retry when they come to the end of one cycle.

View 6 Replies

Actionscript 3.0 :: Non-functioning Reset Button?

May 27, 2009

The reset button on this file doesn't work. In fact I was puzzled about why it had disappeared and it is there but the wrong size (see large navy blue shape in the lower right hand corner of the stage?) When you click this shape you get this error:

ArgumentError: Error #1063: Argument count mismatch on AddATree2/onReset(). Expected 0, got 1.Not sure what that means because I can't find any arguments in this function.This should work so that the text and polygons disappear when the reset button is clicked so you can do this again.Here is the code and the fla is attached. (There are three files inline: Reset.as Tree.as and AddATree.as. See attached .fla AddATreePrototype.fla)

AddATree.as
---------------
Code: Select all/* AS3
Copyright 2008 __MyCompanyName__.

[code]....

View 11 Replies

ActionScript 2.0 :: How To Get Reset Button To Work

Jun 12, 2006

I'm trying to get this reset button to work. I used to use this code in Flash MX but it doesn't work in AS2....
Code:
on (press) {
_root.playb.onRelease = function() {
_root.gotoAndStop(1);
}}

I also tried:
Code:
loadMovieNum("YourFile.SWF", 0);
But the code doesn't work after I export the .swf to my web server and view it on the internet.. (it just disappears when the button is pressed).
Code:
gotoandplay("start")
Doesn't work because I need to reload the code....

View 5 Replies

ActionScript 2.0 :: Reset Button In Flash 8?

Mar 24, 2008

I want to make a reset button, so after the user press it on screen it can reset the values of all fields of the screen.

View 3 Replies

ActionScript 1/2 :: Reset Button For Drag And Drop?

Jun 17, 2009

I've designed a drag and drop game and I would like to add a button that resets both the draggable objects and the counter so that the game starts fresh and can be replayed.
 
Also, I would like the button to appear after all the draggable objects have been placed on their corresponding targets.
 
Here's a link to the FLA:
 
[URL]
 
Below is the AS2 scripting:

[Code]....

View 3 Replies

ActionScript 3.0 :: Make The Button Reset With Flash?

Aug 13, 2009

I recently made a flash banner that changes frames when you click the next frame and last frame buttons, and it also goes to the next frame on a timer. The thing is, I need the timer to go back to it's starting point when you click one of the buttons, so you don't end up seeing a frame for 2 seconds. Initially, the timer starts at 7 seconds, and when you click a button, I'd like it to go back to 7 seconds. Here's my .FLA file:[URL]

Also, whenever the banner goes through all of the frames and comes back to the first frame with the buttons, the first frame next_btn stops working for some reason.

View 4 Replies

ActionScript 3.0 :: Reset Radio Button Group?

Jul 22, 2011

I currently have a radio button group consisting of four radio buttons.

Assuming a user selects one of the four buttons as a choice.

I want to use a button to clear all the radio buttons as unselected.

What is the AS that will set the selected state of all buttons in the group to "not selected"

View 1 Replies

Actionscript 3 :: Add A Reset Button On A Flash File?

Mar 26, 2011

How can I make a reset button so when the file ends it resets all variables and code to the default run-time code and frame?

View 3 Replies







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