i created some textfield variables and set their .text value to be equal to a number.
when i try and load up the textfields in a movieclip i get this error:
TypeError: Error #1034: Type Coercion failed: cannot convert "100" to flash.display.DisplayObject.
but the weird thing is i copied code that worked perfectly in the same flash file and just changed the name of the movieclip. could anyone help?
here's some of my code for one of the textfields:
var playerHealth:String="100";
var playerHealthInput:TextField = new TextField();
(here i write about the textfield attributes)
playerHealthInput.text=playerHealth;
advOptionsWindow_mc.advOptionsSettings_mc.difficul tyIndivSettings_mc.addChild(playerHealth);