【发布时间】:2020-02-21 03:44:59
【问题描述】:
我有一个影片剪辑元件,它是从实例名称为“text2”的动态文本字段转换而来的。当我尝试将其添加为子项然后尝试访问文本字段时,编译器会抛出:
错误 #1009:无法访问空对象引用的属性或方法。
var test = new Qwe(); //Qwe is the movie clip converted from dynamic text field
addChild(test);
test.text2.text ="535"; //instance name of the text field was text2.
【问题讨论】:
标签: actionscript-3 flash adobe textfield movieclip