【问题标题】:cant access text field inside movieclip无法访问影片剪辑中的文本字段
【发布时间】: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


    【解决方案1】:

    罪魁祸首是 Adob​​e Animate 中的“高级图层”设置。关闭它,解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-10
      • 1970-01-01
      • 2017-06-24
      • 2012-12-23
      • 1970-01-01
      • 2015-07-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多