Another schoolboy grade question from me I’m afraid…
I just want to reset all text fields within a movie clip to “”.
I’ve got this;
var child:TextField;
for (var i:uint=0; i < thisMC.numChildren; i++){
child = thisMC.getChildAt(i);
child.text = "";
}
But of course they aren’t all Text Objects so I get an error like;
Type Coercion failed: cannot convert flash.display::Shape@39fa8c9 to flash.text.TextField.
Is there a way to just select children of a specific type maybe?
Thank you kind people!