PDA

View Full Version : Hello "MIKE" how are you today!


RON_ron
07-30-2009, 05:18 PM
1. After the user fill the submit form and hit the submit button "How to get a NAME displayed" on the next frame?

Eg. Hello MIKE how are you today!

2. How to make fields in the submit form*REQUIRED"?

Flash Gordon
07-30-2009, 05:28 PM
Why would it say MIKE, you're obviously RON!

RON_ron
07-30-2009, 05:59 PM
Why would it say MIKE, you're obviously RON!

:) LOL. Obviously I was assuming that MIKE is the user.

Flash Gordon
07-30-2009, 06:17 PM
:)

yourTextFieldName_txt.text wil give you the user inputed values. You then need to validate it yourself by your standards.


var userText:String = yourTextFieldName_txt.text;
var isValid:Boolean = true;
if (userText.length < 2) isValid = false;
if (userText == "WHOA BABY") isValid = false;
//// etc

RON_ron
07-30-2009, 06:39 PM
Isn't there a easier way to use the instance names and write the script where the final result (in this case it's the NAME) will display in output_txt :confused:

so it Just picks the data from the input_name text box and by clicking the submit button - it will display the name in the output_txt on frme 10?