I've got some dynamic textboxes wich load .txt files. I've got a main content part wich works alright. Then I copied the code I used for that copied it in an other layer with an other dynamic textbox, changed the code a bit so it loads an other text wich workes also. But now comes the problem. I tried to copy the page to a third dynamic textbox, change it so it loads an other textfile, but now I get undefined in the textbox. This is the code I use:
nextup.html = true; myLoadVar = new LoadVars(); myLoadVar.load("content/nextuptext.txt"); myLoadVar.onLoad = function(success){ if (success == true){ nextup.htmlText = myLoadVar.content; } };The txt file starts with content=
The dynamic text box is called nextup
This code works perfect with the other text boxes. I dont get whats wrong...