flash question "undefined"
flash question "undefined"
Out of context: Reply #1
- Started
- Last post
- 9 Responses
- unfittoprint0
You have to do the actions sequentially. First retrieve the variables, then tretrieve the stylesheet.
//loadVars
myVars= new Loadvars();
myVars.onLoad = function(sucess){
flashcss.load("flash .css");
} else {
trace("load vars error!")
}
};//load StyleSheet
flashcss = new TextField.StyleSheet ();
flashcss.onLoad = function(success) {
if (success){
col1Top.styleSheet = flashcss;
col1Top.htmlText = eventNews;
}else{
trace("error stylesheet");
};//start the process
myVars.load("content.txt");