0 Replies Latest reply on May 14, 2010 7:37 AM by D.Rosendahl

    multiple states

    D.Rosendahl

      Hi!

       

      Excuse me if this has been up to discussion before but I couldn't find any thread about it.

       

      I'm building a "kind of listcomponent" that uses a custom item renderer. (My own itemrenderer is built on skinnablecomponent)

       

      But my problem is that the my itemrenderer can have multiple states at the same time.

       

      -buttonstates

      * hovered

      * down

      * up

       

      -placestates

      * normal

      * toSmall

      * outsideLeft

      * outsideRight

       

      -liststates:

        * selected

        * normal

       

      -otherstates

      * expanded

      * notexpanded

       

      Somehow this get ridiculous when I should try to translate it to skinstates,

      it results in 3x4x2x2 = 48 different skinstates!!!!

       

      Of course the skin itself can be handled with help of stateGroups but it still quite ugly. I read something about overlays in

      http://opensource.adobe.com/wiki/display/flexsdk/Enhanced+States+Syntax

      but haven't seen anything more about them?

       

      Any suggestions?

       

      /David