So I'm coming up with this idea for a website. The website intro will feature a keypad in which you enter any 4-digit key to enter (Keypad numbers 1-9). I want the swf to be able to take the digits being entered and display them on a dynamic text box, and store them in a variable for later use in the website.
So if I key-in 1-2-3-4, I should see 1234 appear in the box and the variable in the movie should be 1234.
So the code I figured would look something like this with more code to make it goto the next frame when 4-digits are entered and to store the variable.
var key == 0;
num1.addEventlistener(MouseEvent.CLICK, num1f) //I don't know what the functions should do.
num2.addEventlistener(MouseEvent.CLICK, num2f)
num3.addEventlistener(MouseEvent.CLICK, num3f)
num4.addEventlistener(MouseEvent.CLICK, num4f)
num5.addEventlistener(MouseEvent.CLICK, num5f)
num6.addEventlistener(MouseEvent.CLICK, num6f)
num7.addEventlistener(MouseEvent.CLICK, num7f)
num8.addEventlistener(MouseEvent.CLICK, num8f)
num9.addEventlistener(MouseEvent.CLICK, num9f)
Thanks Guys, Please help out.