加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

actionscript-3 – 未找到类型或不是编译时常量1046

发布时间:2020-12-15 07:28:34 所属栏目:百科 来源:网络整理
导读:我想从.fla文件中提取SWF文件.我有一些脚本,但是当我把它们拉出来时 – 它们不起作用.我从编译器得到错误: 1046: Type was not found or was not a compile-time constant**Warning** The linkage identifier 'scrollableContent' was already assigned to
我想从.fla文件中提取SWF文件.我有一些脚本,但是当我把它们拉出来时 – 它们不起作用.我从编译器得到错误:

1046: Type was not found or was not a compile-time constant

**Warning** The linkage identifier 'scrollableContent' was already assigned to the symbol 'pop_ups/__pop_up_other_elements/scrollableContent',and cannot be assigned to the symbol 'pop_ups/__pop_up_other_elements/scrollable_game_content',since linkage identifiers must be unique.

我谷歌那个错误,但没有找到任何适当的答案.
我在这里看到了一些信息,但它对我没有帮助. http://curtismorley.com/20?07/06/20/flash-cs3-flex-2-?as3-error-1046/

请告诉任何人产生此错误的问题是什么,我该如何解决?感谢名单!

解决方法

Adobe网站上的官方 compiler errors list.在这种情况下

错误1046

The class used as a type declaration is either unknown or is an
expression that could have different values at run time. Check that
you are importing the correct class and that its package location has
not changed. Also,check that the package that contains the code (not
the imported class) is defined correctly (for example,make sure to
use proper ActionScript 3.0 package syntax,and not ActionScript 2.0
syntax). The error can also occur if the class being referenced is not
defined in a namespace that is in use or is not defined as public:

public class Foo{}

检查.fla文件以确保正确拥有资产的所有链接.一个简单的例子是你在舞台上有一个名字,你的一个脚本具有相同的名称.你不能定义它两次.修复其中一个.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读