TextField not working...?

I created a simple text field using something like this:


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:


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…