# Importing Components Class Sheets messes up styles?

**URL:** <https://forum.kirupa.com/t/importing-components-class-sheets-messes-up-styles/203439>\
**Category:** flash\
**Created:** [October 11, 2006, 4:02am UTC](https://forum.kirupa.com/t/importing-components-class-sheets-messes-up-styles/203439 "2006-10-11T04:02:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flaevo](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Flaevo](https://forum.kirupa.com/u/Flaevo)\
**Post date:** [October 11, 2006, 4:02am UTC](https://forum.kirupa.com/t/importing-components-class-sheets-messes-up-styles/203439/1 "2006-10-11T04:02:50Z")

</div>

On my Mac OS X it didn’t matter, the setStyle Worked Fine,  
However I’ve transfered my files over to PC and working with the exact same things all the styles work EXCEPT for the setStyle(“themeColor”, “color”);

On this PC it’s always turning it from the default “Greens” to a solid gray shade of borders, this is very weird.

For Example

```auto

// Have a button component on stage
import mx.controls.Button
_global.styles.setStyle("themeColor", "haloOrange");
// Doesn't work.. it will set it from the green to a shady gray.

```

However if I delete the class import and simply do

```auto

// Have a button component on stage
_global.styles.setStyle("themeColor", "haloOrange");

```

It works just fine, do I need to edit the core class files for something? I’m extremely confused, I inport the class files in the first place so I can do public vars and strict data type them to that component. I can remove that if needed.
