4 Replies Latest reply on Nov 8, 2010 1:39 PM by Peter Flynn (Adobe)

    How to use a Label component as Skin part ?

    jlestel

      Hello,

       

      I try to use Label component as Skin part of an AS3 skinnable component and Flash Builder report this information :

      Incompatible custom ActionScript skinnable component: Skin part type spark.components.Label is not compatible.

      This is same for ComboBox, NumericStepper, ...

       

      Do you know why ? Have you got a list of all components we can use in skin parts ?

       

      Many thanks.

      Julien

        • 1. Re: How to use a Label component as Skin part ?
          SrinivasAnnam Adobe Employee

          Hi,

           

             Flash Catalyst uses "RichText" which is an advanced label like control. So, your skin part should be of type "RichText" instead of "Label" inorder for you to use in Catalyst.

           

             Similary, since ComboBox & NumericStepper are not supported in Flash Catalyst, you cannot have these as your skin parts.

           

             Basically, whatever components you see in the "Convert artwork to Component" combobox are supported as skin parts.

           

             Hope this helps.

           

          Regards

          Srinivas Annam

          • 2. Re: How to use a Label component as Skin part ?
            Chris W. Griffith Adobe Community Professional

            The ten components that are supported for skinning are:

            Button

            CheckBox

            DataList

            Horizontal Scrollbar

            Horizontal Slider

            Radio Button

            Text Input

            Toggle Button

            Vertical Scrollbar

            Vertical Slider

             

            The workflow for skinning components as greatly improved in the preview release of Flash Catalyst 'Panini'. You can download it at http://labs.adobe.com/technologies/flashcatalyst_panini/

            • 3. Re: How to use a Label component as Skin part ?
              jlestel Level 1

              I have always an error with List controls:

              Incompatible custom ActionScript skinnable component: Skin part type spark.components.List is not compatible. Right-click for more information.

               

              So, List/DataList aren't supported as skinPart in Burrito ?

              • 4. Re: How to use a Label component as Skin part ?
                Peter Flynn (Adobe) Adobe Employee

                Hi Julien,

                 

                List is not currently supported as a part for skinning within Flash Catalyst.  When using Flex 4 / Flash Builder without regard to Catalyst, you are of course free to use whatever skin part types you wish.

                 

                The reason it's not supported in Catalyst is because, for a List part, there's typically a fairly rigid set of requirements/assumptions about the format of the data the list will display.  Currently, the skinning metadata in Flex doesn't give you any way to specify that data format, which makes it hard to author a correctly matching List itemRenderer in Catalyst.  This is pretty important, so we want to make sure we take enough time to get it right -- hence it not being supported just yet.

                 

                Hope that makes sense,

                 

                - Peter

                1 person found this helpful