Dynamic button text at the hitstate

Hello,

Last time I get a question “How dow I make button text dynamically”. Alex Lexcux send me the answer:


var t3:TextField = (btnFeest.overState as DisplayObjectContainer).getChildAt(1) as TextField;
t3.text = 'Animals';

But except one thing: What is state for hit,


var t5:TextField = (btnFeest.hitTestState as DisplayObjectContainer).getChildAt(1) as TextField;
t5.text = 'Animals';

But then I get the next error: “Error #1009: Cannot access a property or method of a null object reference.”
I don’t understand because overState/DownState is working fine. Why not the hit state? Has it something todo with the stage?

And I see one more thing. If I go with the mouseover the button the mentioned text is not close to the mousepointer/button. Is is possible to give a position to the text relatief to the mousepointer like t3.x = mouse.position??

Thanks in advance.

Nico