05-21-2012, 07:15 AM
|
#4
|
|
Senior Member
Join Date: Aug 2010
Location: Sydney,Australia
Posts: 132
|
Like i said if you have the textfields on the stage already and not dynamically adding it use something like
Quote:
tf1.addEventListener(MouseEvent.CLICK,handleTextCl ick,false,0,true);
tf2.addEventListener(MouseEvent.CLICK,handleTextCl ick,false,0,true);
tf3.addEventListener(MouseEvent.CLICK,handleTextCl ick,false,0,true);
//click click click away
function handleTextClick(e:MouseEvent){
target.text = (e.target as TextField).text;
}
|
That should work
|
|
|