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

标签 actionscript-3 flash flash-cs5

我想从 .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/

请告诉任何人是什么问题产生了这个错误,我该如何解决?谢谢!

最佳答案

官方compiler errors list在 Adob​​e 的网站上。在这种情况下

错误 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 文件以确保您拥有正确的 Assets 链接。一种简单的情况是,您在舞台上有一个带有名称的东西,而您的一个脚本具有相同的名称。你不能定义它两次。修复其中之一。

关于actionscript-3 - 类型未找到或不是编译时常量 1046,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7630022/

相关文章:

javascript - Web 浏览器中的等高线图

flash - 在 Flash CS5 中更改注册点的位置

iphone - Flash cs5 iOS 按住不放?

flash - 在 actionscript 3 (flash pro CS5.5) 中运行 hello world 应用程序

android - Paypal for android 如何在回调中识别付款项?

java - 0.99999999999相乘时可以四舍五入到1.0吗?

apache-flex - 按下 'alt'后如何保持焦点?(Adobe AIR应用)

actionscript-3 - 将类导入 ActionScript 文件

ios - 使用 Flash Builder 在 iTunes Connect 中进行 TestFlight Beta 测试的正确 Beta 权利

actionscript-3 - AS3自定义对象到ByteArray,然后到自定义对象