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
and also replaced
<mx:Component>
,<mx:Style>
by their corresponding<fx:....>
And this solved the issue.
Someone having the same problem found out his FLEX_HOME environment Variable was still pointing to the flex 3 sdk.