How do you change this code so that it works when the swf timeline its on, is loaded into a movieclip on a main swf stage (_root.loadarea)
It works fine on its own but dont when loaded into the loadarea mc.
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>
format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
Also can someone alter it for text that’s being loaded in from txt file?!..ta!