Situation:
I have a dynamic text box in one movie clip, and a button in another movie clip. I need for that button to display a text file in the text box (in the other movie clip) when it is released.
There really isn’t any way to join these clips, given the design of my site. Here is the code I have for my old design, when the button and the box were in the same clip:
on (release) {
loadText = new loadVars();
loadText.load(“journal/2004-09-12.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
boxybox.html = true;
boxybox.htmlText = this.text.split("
“).join(”
");
}
};
}
I’m hoping I can just add a bit to the last two lines to make it work, but everything I’ve tried has’t worked. Any suggestions?