I am having trouble attaching an external stylesheet to a dynamic text file in flash.
Details:
Instance name: my_txt
Variable name: storyText
Flash 8 | ActionScript 2.0
inside the text file: storyText=This is my is my text here…
Latest code that I am using:
…
function textLoader() {
myData = new LoadVars();
myData.onLoad = function() {
my_txt.html = true;
my_txt.htmlText = storyText;
};
myData.load(“about2.txt”);
}
var myCSS = new TextField.StyleSheet();
myCSS.load(“style_t.css”);
myCSS.onLoad = function() {
my_txt.styleSheet = myCSS;
textLoader();
};
…
anyone know what the problem is?
thanks,
mark.