This content has been marked as final. Show 7 replies
assign a variable's value to enterName_mc.inputName.text when your submit button is pressed (before your goto method). then use that variable to assign the text property to the textfield in errorBox (after the textfield exists:
errorBox.yourTextField.text = "Welcome "+yourVar+" to our website";
sorry kglad, put this in a new thread because i didn't want to keep bothering you! Cheers for the help.
Sorry to be really dumb (and tired!):
so what do I attach to the submit button? and where to I input all this code?
Again, thankyou for your time
attach the code to the frame that contains your submit button inside your submit button's mouse handler:
Ok so after much fiddling I've set up a global actions layer that runs throughout the movie with this on it:
The message box now contains the text plus "undefined"
What else do I need to do!?
you can't assign the text to errorMessage_mc.errorText until that textfield exists. ie, put
errorMessage_mc.errorText.text = "Welcome "+userName+" to our website";
on the frame that contains errorMessage_mc.errorText
It works now, thankyou for your help