将 Flex 3 迁移到 Flex 4 时出错 [英] Error migrating Flex 3 to Flex 4

查看:28
本文介绍了将 Flex 3 迁移到 Flex 4 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的 Flex 3 项目导入到 Flex 4 并删除了 Flex 4 问题窗口中列出的所有错误和警告.

I imported my Flex 3 project to Flex 4 and removed all the errors and warnings listed in Flex 4 problem windows.

我在 Flex 4 中启动我的应用程序时遇到以下错误.

I am having the following error in Flex 4 when launching my application.

这可能是什么原因?

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.

非常感谢

推荐答案

答案在这里.

问题实际上是在 flex 中尝试加载模块时发生的.所以基本上我包括了命名空间

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:....>

这解决了问题.

这篇关于将 Flex 3 迁移到 Flex 4 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆