?
Solved

TextField

Posted on 2000-03-20
11
Medium Priority
?
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 120 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

770 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