|
|
loadVariables issue
|
|
|
|
Mac Elite
Join Date: Sep 2003
Location: Reno, Nevada
Status:
Offline
|
|
hey guys,
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!";
}
};
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2003
Location: Reno, Nevada
Status:
Offline
|
|
any takers out there, anyone what to help a brother out....
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|