2 Replies Latest reply on Apr 4, 2011 1:07 PM by saisri2k2

    CSS in Modules

    bidon47

      Hi,

      I work on a large Flex Project that includes now Modules.

      Just now there is a css-File in the Main Application.

       

      <mx:Application ...>

      <mx:Style source="css/main.css"/>

      </mx:Application

       

      In the CSS-File:

       

      Application{
      ...
      }
      Panel{
      ...
      }
      Button{
      ...
      }

       

      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?

      Thanks