Hi everyone ! 
Can someone tell me why I can get the value from my text field when the enter key is pressed? I guess I don't use the right statement to get the value.
mc_new_mess = new Object();
mc_new_mess.onKeyDown = function() {
if (Key.getCode() == Key.ENTER) {
test_var = "xxxxxxxxx" // outputs xxxxxxxxx in the other field
test_var = this.ins_new_mess.text; // outputs nothing in the other field
test_var = ins_new_mess.text; // outputs nothing in the other field
test_var = mc_new_mess.ins_new_mess.text; // outputs nothing in the other field
} else {
}
}
Key.addListener(mc_new_mess);
Can someone tell me why I can get the value from my text field when the enter key is pressed? I guess I don't use the right statement to get the value.
mc_new_mess = new Object();
mc_new_mess.onKeyDown = function() {
if (Key.getCode() == Key.ENTER) {
test_var = "xxxxxxxxx" // outputs xxxxxxxxx in the other field
test_var = this.ins_new_mess.text; // outputs nothing in the other field
test_var = ins_new_mess.text; // outputs nothing in the other field
test_var = mc_new_mess.ins_new_mess.text; // outputs nothing in the other field
} else {
}
}
Key.addListener(mc_new_mess);