I have searched the forum far and wide, and cannot find a decent answer to this question. I’m looking to extend the TextArea component, I am trying like this so:
class QuestionBox extends mx.controls.TextArea {
public function QuestionBox() {
trace (this);
}
public function clear():Void {
this.text = "";
}
}
in in my Flash Doc:
import QuestionBox;
var textBox:QuestionBox;
textBox.clear();
I don’t get any errors when I compile, but I’m not sure the class is actually linked to my component instance on the stage. You cannot modify the linkage identifier, so how am I supposed to get this done?