Question
How to add one symbol in between the user give input.
Hi,
In my flash had the following code.
import flash.events.TextEvent;
tf.addEventListener(TextEvent.TEXT_INPUT, tfHandler);
function tfHandler(e:TextEvent):void{
trace(e.target.text.length);
if(e.target.text.length == 2){
e.target.appendText("-");
stage.focus = tf;
tf.setSelection(tf.text.length,tf.text.length);
}
}
Like this How to do in AS2.?
Thanks with,
Viswa
