Text Field Not Displaying
I have some code on the timeline of my .fla file which adds a textfield when a function is called.
function healthCreateB():void{
var hyperbenHP:TextField = new TextField();
hyperbenHP.embedFonts = true;
stage.addChild(hyperbenHP);
trace(hyperben.HPT);
hyperbenHP.x = 173
hyperbenHP.y = 138
hyperbenHP.text = 'banana'
hyperbenHP.defaultTextFormat = new TextFormat('Arial', 12, 0xFFFFFF);
}
This function is called from a movieclip which has var HPT:uint = 100000.
The trace statement puts this out but the text is nowhere to be seen. If I move the mouse around the stage I can't even find a place where the cursor changes to the I cursor.
What am I doing wrong?
