visualizer03
02-28-2008, 07:06 PM
Attached is a fla file and txt document.
I am trying to dynamically load a txt document into the agenda scene of this document. It works sporadically. The goal is that a non-savvy computer user can update the flash presentation with his/her agenda without ever opening or having to touch flash.
This is the code I am using in flash:
stop();
myData = new LoadVars();
myData.onLoad = function()
{
myText_txt.html=true;
myText_txt.htmlText = this.myVariable;
};
myData.load("myText1.txt");
However, when I edit the txt file and resave the flash swf reads "undefined" rather than the displaying the updated agenda.
Any suggestions? What did I miss?
I am trying to dynamically load a txt document into the agenda scene of this document. It works sporadically. The goal is that a non-savvy computer user can update the flash presentation with his/her agenda without ever opening or having to touch flash.
This is the code I am using in flash:
stop();
myData = new LoadVars();
myData.onLoad = function()
{
myText_txt.html=true;
myText_txt.htmlText = this.myVariable;
};
myData.load("myText1.txt");
However, when I edit the txt file and resave the flash swf reads "undefined" rather than the displaying the updated agenda.
Any suggestions? What did I miss?