0 Replies Latest reply on Nov 3, 2010 12:43 PM by drkstr_1

    Problem w/ Inspectable Properties in Design View

    drkstr_1 Level 4

      Hello,

       

      I am trying to get inspectable properties to show up in the design view, but the are not showing up in the properties panel.

       

      I followed this tutorial to set it up: http://blog.another-d-mention.ro/programming/create-professional-flex-components/

       

      Included in my Library Project:

       

      manifest.xml

       

       

      <?xml version="1.0"?>
      <componentpackage>
          <component id="TextContent" class="vls.content.components.TextContent"/>
      </componentpackage>
      

       

       

      design.xml

       

       

       

      <?xml version="1.0" ?>
      <design>
           <namespaces>
                <namespace prefix="vls" uri="xxxxxxx" />
           </namespaces>
           <categories>
                <category id="elements" label="Page Elements" defaultExpand="true" />
           </categories>
           <components>
                <component name="TextContent" namespace="vls" category="elements" displayName="Text Content">
                     <mxmlproperties>
                          <textfield id="groupName" name="Group Name:" />
                     </mxmlproperties>
                </component>
           </components>
      </design>
      

       

       

       

      and the component:

       

       

       

      package vls.content.components
      {
           import spark.components.Group;
           
           public class TextContent extends Group
           {
                public function TextContent()
                {
                     super();
                }
                
                [Inspectable(category="General", type="String", defaultValue="")]
                public var groupName:String;
      
           }
      }
      

       

       

       

      In the main app (the one importing the above lib), I do get the component listed in the "Page Elements" category as expected. However, there is no "Group Name" property input in the properties panel for this component.

       

      Any ideas what I'm missing?

       

      I'm using Burrito / Hero if it matters.

       

       

      Thanks for your time!