how do I remove a textfield? (stop a textfield that is only needed in one scene from keep showing up) pleeeeeeeease help me
myTextField.removeTextField();
Can only be used if the text field is created using MovieClip.createTextField
but it’s not working…:*(
var characters:Array = new String(“two roads diverged in a yellow wood and sorry i could not travel both”).split("");
this.createTextField(“txt”, 1, 10, 260, 515, 22);
txt.border = true;
txt.background = true;
Key.addListener(txt);
txt.onChanged = function():Void {
Ferrari._x += 6.3;
};
txt.onKeyDown = function():Void {
if (String.fromCharCode(Key.getCode()).toLowerCase() == characters[txt.length].toLowerCase()) {
this.text += String.fromCharCode(Key.getCode());
this.onChanged();
}
if(txt.length >= 69) {
gotoAndStop (“Scene 3”, 1);
}
}
that’s the code I used, does that make a difference?
nope, it should work fine. If you were to put this at the end it should work:
this.txt.removeTextField();
SWEEEEET! I WORKS!
I meant, “it”, lol, i’m too excited i can’t even type