0 Replies Latest reply on Jul 22, 2009 3:52 AM by HeatherZh

    Migration to Gumbo issue:setting default style values of a custom component


      I was migrating a working Flex app from Flex 3.4 to Gumbo and encountered a bunch of run-time errors.  The errors are occuring because the default styles for some of actionscript custom components are not longer set.


      Based on livedocs (link below), under "settng default values" subtitle, there is no change between Flex 3 and Gumbo on how this should be done.


      http://livedocs.adobe.com/flex/gumbo/html/WS2db454920e96a9e51e63e3d11c0bf687e7-7ff6.html#W S2db454920e96a9e51e63e3d11c0bf69084-79d9


      But when I started a new project,  copy and pasted StyledRectangle.as, and the exact same mxml as in the livedocs


      <?xml version="1.0"?> 
      <!-- skinstyle\MainRectNoStyles.mxml -->
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

              <!-- By default, use the style defined by the CSS type selector. -->
          <MyComp:StyledRectangle id="mySR1"/>


      and run the project, no rectangle is rendered at all (alphasData is null).

      If I add


              @namespace "myComponents.*";
              StyledRectangle {fillColors: #FF00FF, #00FFFF}
      The example works fine. 

      What is the correct way to set default styles for an actionscript custom component using Gumbo ?

      Any help is very much appreciated!