Dynamic Text not changing

Ok, i have a dynamic text box and I want it to change when a button is pressed.

this button is contained within movie clip.

on(press){
&nbsp &nbsp &nbsp &nbsp unloadMovie(_root.mcBGLoader)
&nbsp &nbsp &nbsp &nbsp _root.scroller.text = _root.nProduct
&nbsp &nbsp &nbsp &nbsp loadMovie(“http://www.angelfire.com/dc/vidgame/requiem/image3.swf”,_root.mcBGLoader)
}

this is the code to load the variables. its on the first frame of the main timeline

loadVarsText = new loadVars();
loadVarsText.load(“http://www10.brinkster.com/jubbaorf/requiem/flashtest/text.txt”);
loadVarsText.onLoad = function(success) {
&nbsp &nbsp &nbsp &nbsp if (success) {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp scroller.text = this.nNews;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
};

what am i missing.

it works on my machine…maybe the path to the text box is incorrect.
:slight_smile:
jeremy

all right thanks. I thought my coding was right. I’ll check the path.

Thats strange. The only way that I could get it to work was if I put the LoadVarText code on each button and change the scroller that way. But that works fine. My path was correct for the other way but it just wasn’t working. It was saying that my variables were undefined. Oh, well. This works just as well…