此代码抛出一个错误:ActionScript:这怎么会失败?
if (modalMessage != null && contains(modalMessage))
{
removeChild(modalMessage); // the error is here
modalMessage = null;
}
的错误是:
[Fault] exception, information=ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
怎么能这样呢?我正在检查是否它是一个孩子事先。
你可以发布代码,你检查它是否是一个孩子? – 11684 2012-04-12 09:02:00
检查是否包含() – clamp 2012-04-12 09:05:20
oops ,误读... – 11684 2012-04-12 12:40:51