I need help making this work… I have a movie setup to load text from a text file (the variable is “description”) into a dynamic textbox with instance name “content”. The actionscript is below:
myData = new LoadVars();
myData.onLoad = function(success){
if (success) {
content.text = this.description;
} else {
content = "error loading text content";
}
}
myData.load("content.txt");
stop();
This works perfectly when I just play this movie. The movie and text file are located inside a folder titled “Content”.
But when I try to load this movie into a movieclip in my main movie, the dynamic text does not load. The main movie has the following code:
loadMovie("Content/content.swf", "blank_mc")
How do I make this work?