将Flex 3迁移到Flex 4时出错 [英] Error migrating Flex 3 to Flex 4
问题描述
我将Flex 3项目导入到Flex 4中,并删除了Flex 4问题窗口中列出的所有错误和警告。
我在Flex 4中出现以下错误当启动我的应用程序。
这可能是什么原因?
错误:兼容性版本已被读取。
在mx.core :: FlexVersion $ / set compatibilityVersion()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexVersion。 as:254]
at mx.core :: FlexVersion $ / set compatibilityVersionString()[E:\dev\\4.x\frameworks\projects\framework\src\mx\core \FlexVersion.as:301]
at _Screen1Module_mx_core_FlexModuleFactory()
请高手帮忙在这一个。
非常感谢
。
当试图在flex中加载模块时,问题实际上发生了。所以基本上我包含了命名空间
xmlns:fx =http://ns.adobe.com/mxml/2009
xmlns:s =library://ns.adobe.com/flex/spark
xmlns:mx =library://ns.adobe.com/flex/mx
也替换为< mx:Component>
,< mx:Style>
通过相应的< fx:....>
这解决了这个问题。
I imported my Flex 3 project to Flex 4 and removed all the errors and warnings listed in Flex 4 problem windows.
I am having the following error in Flex 4 when launching my application.
What could be the cause of this?
Error: Compatibility version has already been read.
at mx.core::FlexVersion$/set compatibilityVersion()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexVersion.as:254]
at mx.core::FlexVersion$/set compatibilityVersionString()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexVersion.as:301]
at _Screen1Module_mx_core_FlexModuleFactory()
Experts, please help me on this one.
Many thanks
Here is the answer.
The problem was actually occuring when trying to load modules in flex. So basically I included the namespaces
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
and also replaced <mx:Component>
, <mx:Style>
by their corresponding <fx:....>
And this solved the issue.
这篇关于将Flex 3迁移到Flex 4时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!