apache-flex - 类mx.core::DesignLayer could not be f

我正在尝试运行我的Flex项目,但是在运行时出现错误:
VerifyError:错误#1014:找不到类mx.core::DesignLayer

因此,我为Design图层类添加了一个import语句: import mx.core.DesignLayer ,现在出现编译错误:
找不到mx.core::DesignLayer

什么是DesignLayer?为什么即使导入后也很难找到它?

谢谢。

最佳答案

您可能正在使用旧的SDK构建新功能。或者,也许您是在使用较旧的SDK构建的应用程序内部重用由较新的SDK构建的第三方组件。

在这两种情况下,DesignLayer类都是在Flex版本4中引入的,称为stated in the docs。因此,如果您使用Flex 3来构建应用程序,那么就可以找到DesignLayer类,这是因为它不存在,这很有意义。

[sdk-path]\frameworks\projects\framework\src\mx\core上查看框架的源代码。在Flex 4+中,您会在其中找到文件DesignLayer.as。 Flex 3并非如此。

关于apache-flex - 类mx.core::DesignLayer could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10493644/

相关文章:

ruby - 为什么在编译ruby-1.9.3-p125时出现clang错误?

c++ - 在UNIX上 “internal compiler error: storage fai

compiler-errors - 添加平移和缩放错误

iphone - 如何解决iPhone应用程序hpple HTML解析 'libxml/tree.h

xml - 构建SLN : CS0008 - CS0115的奇怪错误

actionscript-3 - 1120 : Access of undefined proper

c++ - 返回类(class)成员时遇到麻烦

gcc - 由GCC创建的exe文件没有权限?

testing - Flex Builder : Asset file or directory n

visual-studio-2010 - VS2010 Express 中的 Boost - 重新定