3 Replies Latest reply on Jun 2, 2011 11:24 AM by Zolotoj

    Type CSS type selectors warning

    Zolotoj Level 3

      I am getting these compiler warnigns

      CSS type selectors are not supported in components: 'spark.components.Form#form1 spark.components.FormHeading'

      CSS type selectors are not supported in components: 'spark.components.Form#form1 spark.components.FormItem'

      on this code:

      <?xml version="1.0" encoding="utf-8"?>
      <s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009" 
                xmlns:s="library://ns.adobe.com/flex/spark" 
                xmlns:mx="library://ns.adobe.com/flex/mx">
           <fx:Style>
                @namespace s "library://ns.adobe.com/flex/spark";
                s|Form#form1 s|FormItem
                {
                     skinClass: ClassReference("spark.skins.spark.StackedFormItemSkin");
                }
                s|Form#form1 s|FormHeading
                {
                     skinClass: ClassReference("spark.skins.spark.StackedFormHeadingSkin");
                }
           </fx:Style>
           <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
           </fx:Declarations>     
           <s:Form id="form1">          
                <s:FormItem id="treeTitle" label="Tree" textAlign="center">
                     <mx:Tree id="tree"></mx:Tree>
                </s:FormItem>
           </s:Form>
      </s:VGroup>
      
      

      I have read that these warnings can be simply ignored, but when I run this code I dont get the stacked effect.

      Whta do I do?

       

      Thanks