This content has been marked as final. Show 6 replies
- Wrap the text fields in a movieclip and remove the movieclip from the stage.
- Move the text fields to a location outside of the stage....
You can only remove text fields with actionscript when they are created with actionscript.
Problem is I need to have all text instances in the same clip, so if possible it'd be desiredable to remove Text Instances without placing each of them into Movieclips.
myTextInstance._visible =false ?1 person found this helpful
the TextField instance doesn't support that property
yes it does.1 person found this helpful
Well removeTextField actually works on any textFields, the actual problem is that your timeline placed textFields have a negative depth which makes them not removable.1 person found this helpful
So you need to swapDepths() to a positive depth before removeTextField. BUT, for some reason the swapDepths method was left out of the TextField prototype. So you need to add that.
Anyways, the following code will work, but _visible is much easier to use! Or generally if you are going to need to dynamically manipulate things it is probably best to dynamically place them.