Hi all,
After long time searching I came across here as there are many solved problems already.
Hopefully someone has an answer for this, I’m using AS2.
I have a problem with loading text from a *.txt file into a dynamic textfield which is located in a movieclip in another movieclip. It seems it can’t find the textfield because it is in movieclips. I know I shouldn’t work with the ‘_root’ command but in my project it doesn’t matter. Also tried making ‘_root’ globalmain to ‘this’. But that still doesn’t do the trick.
tdata = new LoadVars();
tdata.onLoad = function(success) {
if (success) {
_root.movie1.movie2.dynamic_content.htmlText = this.content;
} else {
trace("No content found");
}
};
tdata.load("data1.txt")
Like to share my knowledge too.
Thanks a lot in advance!