# "evt.target.name" Problem

**URL:** <https://forum.kirupa.com/t/evt-target-name-problem/269402>\
**Category:** flash\
**Created:** [August 27, 2008, 4:17am UTC](https://forum.kirupa.com/t/evt-target-name-problem/269402 "2008-08-27T04:17:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnb816](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@johnb816](https://forum.kirupa.com/u/johnb816)\
**Post date:** [August 27, 2008, 4:17am UTC](https://forum.kirupa.com/t/evt-target-name-problem/269402/1 "2008-08-27T04:17:22Z")

</div>

My question deals with using “evt.target.name”.

My stage movie clip is named “content”. I’ve placed five input text fields within this clip on their own layers. If AS3 were a kinder creature my reference to “evt.target.name” would work to clear the default text displayed on my text fields. But unfortunately for me it doesn’t.

Does someone know of a simple fix? I’ve provided the code below and the file for anyone that wants to try it out. Any help would be good.

> 

var TextFieldArray:Array= [content.neoname, content.neoclass, content.neoemail, content.neonumber, content.neocommentary];

for each(var tf:TextField in TextFieldArray) {  
tf.border=true;

tf.addEventListener(FocusEvent.FOCUS\_IN, onFocusIn);  
}

function onFocusIn(evt:FocusEvent):void {  
trace(“in focus “);  
content.evt.target.name.text=””; //This line is where the problem lies.  
}
