Hi,
How do I get this to work more like a login,
where the textfield accepts the numbers and entered?
Thanks for the help,
var login:int = 0;
//KEYPAD LISTENERS
num1.addEventListener(MouseEvent.CLICK, num1b);
num2.addEventListener(MouseEvent.CLICK, num2b);
//...
//KEYPAD FUNCTION
function num1b(e:MouseEvent):void{
login = 1;
trace(login);
tx.text = String(login);
}
function num2b(e:MouseEvent):void{
login = 2;
trace(login);
tx.text = String(login);
}
//CAN ENTER SITE
addEventListener(Event.ENTER_FRAME, entry);
function entry(evt:Event):void{
if(login == 528){
//gotoAndPlay();
}
}
I'm making a keypad to login to a Flash site and see a portfolio. The values don't enter in the dynamic textfield without incrementing or overwriting each other.
Tried this
//numb1b
tx.text = tx.text + "1";
//numb2b
tx.text = tx.text + "2";