# How to style a windows component in AS2

**URL:** <https://forum.kirupa.com/t/how-to-style-a-windows-component-in-as2/252904>\
**Category:** flash\
**Created:** [February 25, 2008, 9:16am UTC](https://forum.kirupa.com/t/how-to-style-a-windows-component-in-as2/252904 "2008-02-25T09:16:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivanathan](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Sivanathan](https://forum.kirupa.com/u/Sivanathan)\
**Post date:** [February 25, 2008, 9:16am UTC](https://forum.kirupa.com/t/how-to-style-a-windows-component-in-as2/252904/1 "2008-02-25T09:16:22Z")

</div>

Hi,

I am having a windows component called win1.  
Basically I event to see the various windows styles possible(red color,blue color).  
I used,  
win1.setStyle(“themeColor”,“haloOrange”);  
win2.setStyle(“themeColor”,“haloGreen”);  
win3.setStyle(“themeColor”,“haloBlue”);

But they dont seem to have any effect.

Any idea about this?  
Everytime I see only silver color.
