# Load styles from css file at run time

**URL:** <https://forum.kirupa.com/t/load-styles-from-css-file-at-run-time/298683>\
**Category:** flash\
**Created:** [October 22, 2009, 9:50pm UTC](https://forum.kirupa.com/t/load-styles-from-css-file-at-run-time/298683 "2009-10-22T21:50:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)\
**Post date:** [October 22, 2009, 9:50pm UTC](https://forum.kirupa.com/t/load-styles-from-css-file-at-run-time/298683/1 "2009-10-22T21:50:36Z")

</div>

Hello :). I am trying to load different styles at run time. In my css files there is only description of the Application tag. If I point to the file in my mxml code:

```auto
<mx:Style source="name_of_the_file.css"/>

```

it is working. The problem is that I don’t know how to do this with as3. I have managed to load data with this:

```auto
StyleManager.loadStyleDeclarations( 'name_of_the_file.swf' );

```

My question is how I can load not swf but .css file like in the example above. Thank you in advance. It must be something simple but now I can’t figure it out.
