PDA

View Full Version : Loading Dynamic Text is not working in MX 2004


BDUSTY
12-05-2005, 08:20 PM
I've been looking through the forum for dynamic text issues and it appears that the code i'm using is correct. Nothing is commented out this time. When I publish the movie I don't get any syntax errors but I do get an error opening URL file in my output window. It seems like it cannot locate my txt file. I don't understand why my MC cannot locate the TXT file. I've done this in Flash MX with no problems at all. I understand that 2.0 is case sensitive and I made the proper adjustments but is there anything else i'm missing?Also, the .swf and the .txt are in the same folder. This is basically what I get when I publish:

Error opening URL "file:///C|/Documents%20and%20Settings etc, etc.


loadText = new LoadVars();
loadText.load("natbio.txt");
loadText.onLoad = function(success) {
if (success) {
scroller.text = this.natebiotext;
}
}


Please help!!

BDUSTY
12-05-2005, 08:54 PM
I actually got the text to appear by capitalizing the "s" in Scroller but the scroll bar gets disabled when published. All in all, I did manage to get the text to populate but I cant enable the scroll bar.

Thanks in advance.


loadText = new LoadVars();
loadText.load("natbio.txt");
loadText.onLoad = function(success) {
if (success) {
Scroller.text = this.natebiotext;
}
}