Hi
I am Using Function named Trimspace.
i am using that function in Focusout of the textInput field.
For that Text input Field its Trimming the space Properly.
But when i use same thing for the TestArea Field its Not trimming the Space..
wat may be the wrong with that..
Give me the Solution
Trimspace Function is here
private function trimspace(txt_s:Object):void{
 var temp:TextInput = TextInput(txt_s);
var txt_str:String=temp.text;
while (txt_str.charAt(0) == " ") {
 txt_str = txt_str.substring(1, txt_str.length);
}
while (txt_str.charAt(txt_str.length-1) == " ") {
 txt_str = txt_str.substring(0, txt_str.length-1);
}
//trace(txt_str);
temp.text=txt_str;
}
Thx in Advance
Ganesh Suyampirakasam


      Save all your chat conversations. Find them online at 
http://in.messenger.yahoo.com/webmessengerpromo.php

Reply via email to