How to attach a skin to a list of spark (AS3)?

Hi all

I would like attached skin to my List (spark) component, as I tied my Renderer... but how?

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 = ????

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

Kind regards

Patrick

Oh, you're in fx4.

setStyle ("skinClass", SkinRef);

SkinRef is the reference class. It is the name of the class, but do not set

as a string.

In your case would be

setStyle ("skinClass", myListSkin);

as you put in there already.

C

Tags: Flex

Similar Questions

Maybe you are looking for

  • How can I delete an account? I want to delete my account from focus groups for example.

    I checked the entries 'account settings' and the 'Preferences' from the 'Edit' menu and found the instructions how to create accounts, but not how to remove them. So, I ask this question until I'll tinker inwith the .thunderbird directory.

  • Battery Toshiba NB200-12R

    HI, I'm Portuguese and my English is not very good. The question is, I have branch model nb200-12r with 6 stack and I charge the battery until the battery light turns green, now I turn off the netbook for one night and when I turn on again the batter

  • My screen freezes 1 min after that I start my PC (only the first time) then it works throughout the day

    It only freezes once and for some strange reason windows crashes when I click on Administrative Tools. Additional information from the double wire: I have absolutely no problem, except that Vista freeze 5 min after the first start of the day, and the

  • Missing features

    Hello I didn't know a policy to disable the use of emoji.  We are currently migrating from Office Communicator 2007 and he has this feature. I also when in Do not Disturb, instant messages still come through.  We should be able to operate in DND mode

  • 5.2 ACS with authorization SRX GANYMEDE +.

    I'm trying to get the job GANYMEDE + on SRX 11.4R7.5. However, during my packet captures on SRX. I found the authorzation SRX with service request = junos-exec but ACS returns no value. causing the SRX to use the 'remote control' as a local user name