Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
181 views
in Technique[技术] by (71.8m points)

flex3 - Error migrating Flex 3 to Flex 4

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:dev4.xframeworksprojectsframeworksrcmxcoreFlexVersion.as:254]
    at mx.core::FlexVersion$/set compatibilityVersionString()[E:dev4.xframeworksprojectsframeworksrcmxcoreFlexVersion.as:301]
    at _Screen1Module_mx_core_FlexModuleFactory()

Experts, please help me on this one.

Many thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...