Dynamic Text (again, i know!)

Hi. I’ve spent ages searching the forums for an answer to this question. And I just can’t find it :*( I can load a text file into a dynamic textbox. That’s no trouble. However… I wanted to have a draggable movie clip that the dynamic text loads into. So the draggable box and dynamically loaded text all move together when pressed. I’ve spent AGES trying to sort out the targetting paths, and I just can’t work it out.

I’m going crazy here! Someone help me plz! :crazy:

bump :cowboy:

make a movie clip right above the top left corner and put these actions in it
on(press){
_root.text_mc.startDrag(true);
}
on(release){
stopDrag();
}

ok, but how do I get text to load dynamically when it’s deeper than just one level? With other text boxes (that aren’t draggable). I can’t get the text to appear if it’s inside other movieclips. it was says things like: “_level0.varText” <- example.

bumpety bump (sorry, I’ve got deadlines :*( :-\ :crazy: )

put this on a frame in the movie clip with the text in it:

loadText = new loadVars();
loadText.load(“photo.txt”);
//creating the loadVarsText function
loadText.onLoad = function() {
_root.mc1.news_text_mc.writing.text = this.news;
};

“news_text_mc” is in the movie "mc1"a
writing is the instance name of the textbox
news is the variable name in your text file and for the textbox

that should work homeboy.
sincerely I hope you meet your deadlines
_root.brian2 :slight_smile:

hehe, thanks. I had a bit of a breakthrough last night, I don’t think the method was the same, but it’s good to get more alternatives and having it down written down will save me sooo much trouble in the future! thanks a lot! :smiley: