Need actionscript to validate form for Flash

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
robman
Forum Newbie
Posts: 1
Joined: Tue Oct 24, 2006 12:47 pm

Need actionscript to validate form for Flash

Post by robman »

OK, I know this is simple, but I need the action script to validate a form with 4 different text areas where I can ask a question and the person has to fill in the four answers not in order but the button needs to check if all 4 answers are right or wrong.

Thanks,
Rob

Using Flash

Example: What are the 4 basic shapes?

type in:
box1>
box2>
box3>
box4>

Triangle, rectangle, circle, and square.

button: check answers. Right or Wrong
ianhull
Forum Contributor
Posts: 310
Joined: Tue Jun 14, 2005 10:04 am
Location: Hull England UK

Post by ianhull »

Code: Select all

If  (box1circle == "Circle")    {
       iscircleright == "true";
}   else   {
       iscircleright == "false";
}
You will need to setup this for every box


then do this for each

Code: Select all

If  (iscircleright == "true")    {
       count = 1
}   else   {
       iscircleright == "false";
       count = -1
}
Post Reply