Solved

TextField

Posted on 2000-03-20
11
254 Views
Last Modified: 2010-04-03
i'm now designing a mathematic program
that allowed user to key in the answer into the textfield and if the answer is correct it'll show something(pictures) and if it's incorrect the "error message" will appear.
your answer and sample are appreciate
0
Comment
Question by:J0HN
  • 6
  • 5
11 Comments
 
LVL 2

Expert Comment

by:coopa
ID: 2636557
I'll work up an example for you.
0
 
LVL 2

Accepted Solution

by:
coopa earned 30 total points
ID: 2636621
Okay, here is your example.

All i did was use a simple IF...THEN statement to determine whether the number entered was the value expected.  

Compiled:
http://www.coopa.demon.co.uk/ee/math.swf

Source:
http://www.coopa.demon.co.uk/ee/math.fla

Let me know if you need any help understanding it.
0
 
LVL 2

Expert Comment

by:coopa
ID: 2636687
> if the answer is correct it'll show something(pictures)
> and if it's incorrect the "error message" will appear.

To achieve this you would just use two labels in the main timeline, both with stop actions.

then the code would look something like this:

If ("variable1" = "22")
      Go to and Stop ("correct")
Else
      Go to and Stop ("wrong")
End If
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:J0HN
ID: 2636735
how if i want the user to know how many question they answer are correct and how many are the incorrect answer ?

0
 

Author Comment

by:J0HN
ID: 2636743
how if i want the user to know how many question they answer are correct and how many are the incorrect answer ?

0
 

Author Comment

by:J0HN
ID: 2636754
how if i want the user to know how many question they answer are correct and how many are the incorrect answer ?

0
 

Author Comment

by:J0HN
ID: 2636757
how if i want the user to know how many question they answer are correct and how many are the incorrect answer ?

0
 
LVL 2

Expert Comment

by:coopa
ID: 2636759
Then you do this...

Set Variable: "score" = 0

If ("variable1" = "22")
      Set Variable: "score" = score + 1
End If

If ("variable2" = "18")
      Set Variable: "score" = score + 1
End If

If ("variable3" = "82")
      Set Variable: "score" = score + 1
End If

and so on....

0
 

Author Comment

by:J0HN
ID: 2636773
would u mind to do the fla file for me pls?
0
 

Author Comment

by:J0HN
ID: 2636793
one more coopa if the user had answer 3 question and the answer all truth then the it'll show them like greeting text
like that how to do it ?
0
 
LVL 2

Expert Comment

by:coopa
ID: 2636829
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I change text in a Flash (FLA, SWF) file? 3 1,033
Stop Ads in Browser Google Chrome 3 547
Adobe Indesign CS6 4 131
flash in chrome 4 110
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question