1

Adobe's runtIme error documentation doesn't specify error code 2007 yet it gets raised here and there from time to time for different reasons. The commonality among them seems to be when an API is specifically rejecting a parameter due to it being null. This is opposed to trying to access a null reference. My guess is that this is similar to an InvalidArgumentException in Java, but nothing I come across confirms that.

Anyone with knowledge at this depth?

4

1 回答 1

0

ActionScript 错误 #2007:参数文本必须为非空。

您可能正在尝试将null分配给 TextField的text 属性

var txtField:TextField = new TextField();

txtField.text = null;

此错误是由TextField的set text函数引发的,该函数需要一个字符串。

于 2012-12-08T05:54:46.520 回答