# TextField not working...?

**URL:** <https://forum.kirupa.com/t/textfield-not-working/283221>\
**Category:** flash\
**Created:** [March 3, 2009, 8:31pm UTC](https://forum.kirupa.com/t/textfield-not-working/283221 "2009-03-03T20:31:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michdd](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@michdd](https://forum.kirupa.com/u/michdd)\
**Post date:** [March 3, 2009, 8:31pm UTC](https://forum.kirupa.com/t/textfield-not-working/283221/1 "2009-03-03T20:31:52Z")

</div>

I created a simple text field using something like this:

```auto

ordi.text = "test";
ordi.selectable = false;	
addChild(ordi);   
myFormat.color = 0xFFFFFF;    
myFormat.size = 12;    
ordi.setTextFormat(myFormat);  
ordi.x = 800;
ordi.y = 0;

```

Then I have a function that calls when the mouse moves over something:

```auto

function showCoord(event:MouseEvent):void{
	ordi.text = "(" + event.target.cox + ", " + event.target.coy + ")";
	trace(ordi.text);
}

```

When it loads it says “test” like it should, but then when the function showCoord gets called the text shown goes blank, but when I trace ordi.text It outputs the correct text, it’s just not shown on the screen…
