Very strange. I’m using the following function to pass characters to 2 text input components, but sometimes (and much more often with the “Password” field), after I click a button, the button loses focus and I have to move the mouse to regain the rollover state and be able to click the button again. When I’ve lost focus, if I click the mouse, it just changes the button to the rollover state but doesn’t pass the value…
Here’s the code:
var Focus:String = "";
function KeyPadButtonClick(_id:Number) {
// default the focus to the UserID
if (this.Focus == "") {
this.Focus = "UserID";
}
if (this.Focus == "UserID") {
this.UserID.text = this.UserID.text+_id.toString();
}
if (this.Focus == "Password") {
this.Password.text = this.Password.text+_id.toString();
}
}
The zip file is attached.
Any ideas???
TIA!!!