Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-24-2011, 05:41 AM   #1
theaudioholic
Registered User
 
Join Date: Mar 2011
Posts: 7
Default [AS2] setStyle skinning method

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

ActionScript Code:
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
theaudioholic is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:20 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.