5 Replies Latest reply on Nov 17, 2010 2:40 AM by patrickmfp-d3plSg

    How to attached a skin to a spark list (AS3) ?

    patrickmfp-d3plSg

      Hi all,

       

      I would like attached a skin to my List (spark) component, like I attached my Renderer ... but how I do that ?

       

      My code :

       

      ---------------------------------------------------------

      var myList:List = new List();
      ListArea.addElement(myList);
      myList
      .percentHeight = myList.percentWidth = 100;
      myList
      .dataProvider = monDC;
      myList
      .x = 50;
      myList
      .y = 50;
      myList
      .addEventListener(IndexChangeEvent.CHANGE, changedItemHandler);
      myList
      .itemRenderer = new ClassFactory(mesRenderers.monRendererDeList);
      ---------------------------------------------------------

      myList
      .skin = ????

      ---------------------------------------------------------

       

      Regards,

      Patrick