If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I'm racking my brain on how to fix this issue... I want to load text dynamically while also loading from a stylesheet. I have made the css work fine, but the text keeps coming up "undefined"... any flash guys or gals, can you help me out!
Thanks,
Scott
Code:
var format = new TextField.StyleSheet();
var path = "vars/text.css";
var txt = loadVariables("vars/text.txt","");
format.load(path);
format.onLoad = function(success) {
if (success) {
main_txt.styleSheet = format;
main_txt.text = txt;
} else {
main_txt.text = "Error loading CSS file!";
}
};