# Css loaded text into masked dynamic field

**URL:** <https://forum.kirupa.com/t/css-loaded-text-into-masked-dynamic-field/189126>\
**Category:** Uncategorized\
**Created:** [May 14, 2006, 1:40am UTC](https://forum.kirupa.com/t/css-loaded-text-into-masked-dynamic-field/189126 "2006-05-14T01:40:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckrieg](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@ckrieg](https://forum.kirupa.com/u/ckrieg)\
**Post date:** [May 14, 2006, 1:40am UTC](https://forum.kirupa.com/t/css-loaded-text-into-masked-dynamic-field/189126/1 "2006-05-14T01:40:19Z")

</div>

Alright, I’m having some issues css’ing text loaded into masked field.

I can load the text in from a txt file. No worries. I can create links, no worries. My problem is simply the css.

I used this code from the kirupa tutoria

```auto
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p><br><p class='two'>The quick Kirupa jumps over the lazy dog.</p><br><p class='three'>The quick Kirupa jumps over the lazy dog.</p><br><p class='four'>The quick Kirupa jumps over the lazy dog.</p>"
format.load(path);
format.onLoad = function(success) {
    if (success) {
        output.styleSheet = format;
        output.text = quick;
    } else {
        output.text = "Error loading CSS file!";
    }
};

```

and then created the mask with this code

```auto
content_mc.setMask(mask_mc);

```

But it still shows up empty. I’m aware that the css code above will not import the text, but one step at a time lol. I have posted my fla here: [http://dev.gad.ca/porubanec/index.zip](http://dev.gad.ca/porubanec/index.zip)

Any help would be greatly appreciated as I need to get this site done by Wednesday!
