Your code is right, but your logic is a little off. I'm assuming your logic, so please forgive me if I'm wrong. But, from the code I can glean that you're thinking that when you click the submit button, Flash will dynamically generate the value of test. In fact, that's not how it works.
When you declare var test:String='Your Name is' + inputData.text + 'Right?'; at the onset of your Flash application, that variable is being set at that moment. Since, when you trace() out the value, it's blank...I'm assuming that the input field is black at the point of this call. Thus, your results.
To fix this, you can declare the variable inside of the submit onRelease function.
Code:
if (all.selected == true) {
submit.onRelease=function() {
var test:String = "Your Name is" + inputData.text + "Right?";
trace(test);
}
}
Bookmarks