Hello, I’m trying to get some nicely formatted text to load from an xml file.
Can I apply a CSS file?
I’m not sure where to find the stylesheet… - I got this code from a friend, and don’t know what to do with it. The xml is reading perfect, but not the stylesheet.
// set stylesheet to the text box
textbox.styleSheet = _root.stylesheet;
// get xml file name
var xmlFile = _root.xml_news;
if (xmlFile == undefined) { xmlFile = "news.xml"; }
Any help would be great!
Thanks!
-Abner