# CSS Tutorial - Not working in a movieclip

**URL:** <https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/119000>\
**Category:** Uncategorized\
**Created:** [August 10, 2004, 7:34pm UTC](https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/119000 "2004-08-10T19:34:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foley](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Foley](https://forum.kirupa.com/u/Foley)\
**Post date:** [August 10, 2004, 7:34pm UTC](https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/119000/1 "2004-08-10T19:34:43Z")

</div>

Hello,

I followed the steps in the \*\*CSS Tutorial \*\*and it worked fine to call and display external text with CSS. However, as soon as the script and dynamic text box was placed into a graphic symbol or a movie clip it did not show up.

Any thoughts?

* * *

I used a Dynamic text box as explained in the tutorial (with Instance name “Output”) and used the following actionscript (in the layer above):

var format = new TextField.StyleSheet();  
var path = “[http://www.kirupa.com/developer/mx2004/code/flash.css](http://www.kirupa.com/developer/mx2004/code/flash.css)”;  
format.load(path);  
format.onLoad = function(loaded) {  
if (loaded) {  
output.styleSheet = format;  
myLoadVar = new LoadVars ();  
myLoadVar.load(“kirupa.txt”)  
myLoadVar.onLoad = function (success){  
if (success == true) {  
output.variable = “kirupa”  
output.htmlText=myLoadVar.kirupa;  
}  
}  
} else {  
output.text = “Error loading CSS file!”;  
}  
};

* * *

-Foley.

---

<div class="post-metadata">

**Author:** ![Foley](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Foley](https://forum.kirupa.com/u/Foley)\
**Post date:** [August 17, 2004, 8:01pm UTC](https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/119000/2 "2004-08-17T20:01:30Z")

</div>

> [@Foley](#):
>
> Any thoughts?

Still baffled! Does anybody know why it does not work?  
I followed the steps in the [size=4][color=#003366] **Applying** [font=Verdana] CSS to Externally Loaded Text[size=2][color=#000000] tutorial.[/color][/size][/font][/color][/size]  
[size=4][color=#003366][font=Verdana][/font][/color][/size]  
-Foley.
