snakey112
11-13-2009, 04:50 PM
Ok just re-doing this thread. Ok I have 6 input text field on the user interface. In each one I want the user to type in 6 different numbers between 1 and 49. Once they've done this and they click the enter button. If they have entered two or more numbers the same e.g '12,41,12,34,21,33' then I want a message to appear on the user interface saying some sort of error message. and the same if they submit a number not within the stated margins (1-49).
Could you please tell me what code I would need to add to get the effect I want!
Thanx in advance.
submitButton.addEventListener(MouseEvent.CLICK, submitInfo);
function submitInfo(event) {
var myArray_array:Array = new Array ();
myArray_array.push(Number(textInput1_txt.text));
myArray_array.push(Number(textInput2_txt.text));
myArray_array.push(Number(textInput3_txt.text));
myArray_array.push(Number(textInput4_txt.text));
myArray_array.push(Number(textInput5_txt.text));
myArray_array.push(Number(textInput6_txt.text));
}
Could you please tell me what code I would need to add to get the effect I want!
Thanx in advance.
submitButton.addEventListener(MouseEvent.CLICK, submitInfo);
function submitInfo(event) {
var myArray_array:Array = new Array ();
myArray_array.push(Number(textInput1_txt.text));
myArray_array.push(Number(textInput2_txt.text));
myArray_array.push(Number(textInput3_txt.text));
myArray_array.push(Number(textInput4_txt.text));
myArray_array.push(Number(textInput5_txt.text));
myArray_array.push(Number(textInput6_txt.text));
}