# CSS Tutorial - Not working in a movieclip

**URL:** <https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/60566>\
**Category:** flash\
**Created:** [August 10, 2004, 7:34pm UTC](https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/60566 "2004-08-10T19:34:43Z")\
**Posts on this page:** 4\
**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/60566/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:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 17, 2004, 8:01pm UTC](https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/60566/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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 10:55am UTC](https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/60566/3 "2004-09-15T10:55:54Z")

</div>

I’ve got a similar problem i think. If i cut and paste the code out of my current project and into a new empty project it works fine. but in my current project it fails to excute the “load” statement at all no matter where i put the code.

Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 11:19am UTC](https://forum.kirupa.com/t/css-tutorial-not-working-in-a-movieclip/60566/4 "2004-09-15T11:19:27Z")

</div>

> [@Carlos](#):
>
> I’ve got a similar problem i think. If i cut and paste the code out of my current project and into a new empty project it works fine. but in my current project it fails to excute the “load” statement at all no matter where i put the code.
> 
> Any ideas?

Hey Guys,

I want you to look at this tutorial attached here with  
I hope this is what u are looking for !!!

## Cheers

aShIsH
