CSS Tutorial - Not working in a movieclip

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”;
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.

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.

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