# setStyle skinning method

**URL:** <https://forum.kirupa.com/t/setstyle-skinning-method/320456>\
**Category:** flash\
**Created:** [March 24, 2011, 5:56am UTC](https://forum.kirupa.com/t/setstyle-skinning-method/320456 "2011-03-24T05:56:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![audioholic](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@audioholic](https://forum.kirupa.com/u/audioholic)\
**Post date:** [March 24, 2011, 5:56am UTC](https://forum.kirupa.com/t/setstyle-skinning-method/320456/1 "2011-03-24T05:56:01Z")

</div>

Hi,

I want to skin the listBox component on my Flash file.

I used the setStyle skin method with the following code to get all aspects such as textColor, rollOverColor, background, etc… and they work like a charm.

I’m stuck with defining the colors for scrollbar and scroll arrow in the listBox. Also I’d like to use alternatingRowColors. I’m not able to get this right.

Could anyone please help?!

```auto
on (load) {
this.setStyle( "borderStyle", "none" );
this.setStyle( "rollOverColor", 0xffffff );
this.setStyle( "selectionColor", 0xa7ce35 );
this.setStyle( "color", 0xa7ce35);
this.setStyle( "textRollOverColor", 0x000000 );
this.setStyle( "textSelectedColor", 0xffffff );
this.setStyle( "selectionDuration", 0 );
this.setStyle( "backgroundColor",0x000000);
}

```

Thanks,  
Sudarshan
