我以编程方式填充文本字段,并在添加新文本时滚动到maxScrollH,以便用户可以看到文本的进度。这工作正常,直到我单击TextField,它将scrollH设置回0并将插入符号放置在文本中的等效位置。 textField.setSelection(text.length, text.length); //sets the caretIndex/selection to the end
text
我正在寻找一种方法来扩展一个TextField这是媒体链接在舞台上在Flash(AS3) 是这样的: public class ChildTextField extends TextField
{
//code for childTextField comes here
}
我已经放在与实例名称“thetextfield”一个TextField在舞台上。现在我想告诉flash这