flash - Backspace a text string, AS3 -


How can I backspace a text string if it was a login screen, then I should be able to backspace a character If I make an error, and continue my login. I'm not sure how to complete this, please help. Thank you,

The sample code is obviously wrong, but it can help to explain

  var log: string = "LOGIN_777"; Trace; B.addEventListener (MouseEvent.CLICK, strangThang); Function strangThang (e: MouseEvent) {/ * I want to read 'LOGIN_77' and decreases after a click, it outputs 'LOGIN_7770' * / log + = log.charAt.length-1; }  

I think you should try to do something like this (not much) , So some other work may be required).

  log = log.substr (0, log. Length - 1);  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -