# Using a css file: Does not seem to work

**URL:** <https://forum.kirupa.com/t/using-a-css-file-does-not-seem-to-work/166813>\
**Category:** Uncategorized\
**Created:** [October 23, 2005, 12:58am UTC](https://forum.kirupa.com/t/using-a-css-file-does-not-seem-to-work/166813 "2005-10-23T00:58:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arn1980](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@arn1980](https://forum.kirupa.com/u/arn1980)\
**Post date:** [October 23, 2005, 12:58am UTC](https://forum.kirupa.com/t/using-a-css-file-does-not-seem-to-work/166813/1 "2005-10-23T00:58:09Z")

</div>

Hi guys,

I am following a tutorial from [lynda.com](http://lynda.com), it is great. I have only one problem. I just cannot include a css file when I use the following code:

var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();  
cssStyles.load(“css.css”);  
cssStyles.onLoad = function(success){  
if(success){  
loadedinfo.styleSheet = cssStyles;  
\_level0.myLV.load(“ourHistory.txt”);  
}  
};

It seems everything is going well, but non of the specified css statements are applied to the text. So when I run my swf file it does output the text, but not with the defined css output. I am not getting any errors when I run this code and it seems that the above if statement returns ‘success’ because the text gets loaded.

My .fla files can be found on [www.cs.vu.nl/~arkrol/flash](http://www.cs.vu.nl/~arkrol/flash)  
I make a about\_us.swf that is loaded into the master.swf

Can somebody help me out?

Greetings Arno
