For example, there are two boxes to allow user to key in to label two angels, for example i label “B” and “Z”
after labelling i need to enter the angles : so it goes something like this “B60” and “Z90”…
Now the main problem here is that he needs to enter “B60” and “Z90”… if he enters something like “T60” or “F90”…It would be wrong as previous i already labelled them as “B” and “Z”…
in the first frame i let user label two angles, which he can use alphabet from “A-Z”… for this i have done it…
Now the problem is at second frame… i want to let the user enter the degrees for the two angels previously that i have labelled…
for example i labelled one angle as “A” and another angle as "B"
then when he enter the degrees for angle “A” and “B” …
He have the answer like this “A60” and “B70”…
if he enter “C60” and “D70”… it would be wrong as previously i have labelled the two angles as “A” and “B”…
//your value
my_value = "o";
//user value
user_value = "box";
//if the character at position 1(second letter) on user_value is equal to your_value
if (user_value.charAt(1) == my_value) {
trace("match!");
//outputs "match!"
}