-
[RESOLVED] How to delete the last letter of the word acs2
hello
How to delete the last letter in acs2
PHP Code:
var myListener:Object=new Object();
myListener.onKeyUp=functions(){
if (Key.getCode() == 65) { // a
t.text =t.text+"a";}
if (Key.getCode() == 66) { // b
t.text =t.text+"b";}
if (Key.getCode() == 8) { // backspace
// i need code to delete the last letter
}}
Key.addListener(myListener);
}
-
This should probably do it:
t.text.substr(0, t.text.length-1)
Something like this.
-
sorry my friend
not working
-
thans swak,
I found the solution
PHP Code:
t.text=t.text.substring(0, t.text.length-1)
-
Originally Posted by kofa
thanks swak,
I found the solution
PHP Code:
t.text=t.text.substring(0, t.text.length-1)
thank you swaaaaaaaaaaaaaak
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|