I work on a large Flex Project that includes now Modules.
Just now there is a css-File in the Main Application.
In the CSS-File:
The CSS-File is only referenced in the Main Application.
When I add the Module to the Application I get some Warns:
CSS type selectors are not supported in components: 'Application'
CSS type selectors are not supported in components: 'Panel'
CSS type selectors are not supported in components: 'Button'
Since there are only warnings, you could just get the idea to ignore it.
But all Compents in the Module with property label <mx:Button label"Adobe Flex"/>
or the Label Componente with Property text <mx:Label text="Adobe Flex"/>
lose their value.
After 1 day research I am now very confused about the StyleManager and find lot more information
on Flex 4 then Flex 3.
I have no solution found for Flex 3.
Does anyone know a solution for this problem?
Make sure you are not referencing the module's class name in the main application.
Modules should be accessed using interfaces. The path to the module should never appear in the main application!!! This interface has to be declared in the main application / the common library which is being used by both the main app and the module.
var mod:IFirstModule = info.factory.create() as DisplayObject