# Flash8/AS2: Stylesheet onload fails. Why? I am so stumped

**URL:** <https://forum.kirupa.com/t/flash8-as2-stylesheet-onload-fails-why-i-am-so-stumped/253403>\
**Category:** flash\
**Created:** [February 29, 2008, 7:39pm UTC](https://forum.kirupa.com/t/flash8-as2-stylesheet-onload-fails-why-i-am-so-stumped/253403 "2008-02-29T19:39:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![auntialias](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/auntialias/32/3793_2.png) [@auntialias](https://forum.kirupa.com/u/auntialias)\
**Post date:** [February 29, 2008, 7:39pm UTC](https://forum.kirupa.com/t/flash8-as2-stylesheet-onload-fails-why-i-am-so-stumped/253403/1 "2008-02-29T19:39:55Z")

</div>

I copied code to load a stylesheet from one (working) FLA file to new FLA file. New file does not work. Old one does.

Code:

```auto
my_ss = new TextField.StyleSheet();
my_ss.onLoad = function(success) {
    if (success) {
        trace("myStyle.css loaded");
    } else {
        trace("myStyle.css did not load");
    }
};
my_ss.load("text/myStyle.css");

```

I get output that myStyle.css did not load.

Have double, triple, quadruple++ checked the path. It is correct.

Is it a problem with the stylesheet file itself? I’m working in BBedit, file has DOS line breaks.  
(should it be saved DOS UNIX MAC? Unicode?)

Flash Publish Settings: Flash Player 8  
Load: Bottom up  
Actionscript 2.0

Suggestions? Ideas for how to further troubleshoot to understand what, exactly, is not loading?
