Actionscript Error: declaration must be contained within the <Declarations; tag, since it is not

Posted yexianyi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Actionscript Error: declaration must be contained within the <Declarations; tag, since it is not 相关的知识,希望对你有一定的参考价值。

 Issue:

When you edit a actionscript, you may got following error.

 

Error:

<span style="color:#000099;"></span><pre class="java" name="code">declaration must be contained within the <Declarations> tag, since it is not assignable to the default property’s element type ‘mx.core.IVisualElement’.

 

Solution:

Please check if there is a typing mistaken in your code. Especially for a extra or unecessary letter.

以上是关于Actionscript Error: declaration must be contained within the <Declarations; tag, since it is not 的主要内容,如果未能解决你的问题,请参考以下文章

ActionScript3 gotoAndPlay 未找到框架。

Actionscript 3 - 错误 #1065:未定义变量 ArenaMain

ActionScript3 gotoAndPlay找不到帧。

Flex / ActionScript3 - 对象属性/变量 null

函数不返回值(错误 1170;ActionScript 3.0)

actionscript3 ArgumentError:错误 #2015:位图数据无效