Rach73
02-07-2005, 11:00 AM
Hello,
I've searched the forums but can't seem to find anything that exactly matches my problem. I've created a movie 'container' (movie1.swf) which loads another swf (movie2.swf) into it when a button is pressed. The code I've used to do this with a transistion and preloader is:
btnNewmovie.onRelease = function() {
if (_root.section != "movie2.swf") {
_root.section = "movie2.swf";
_root.transition.gotoAndPlay("closing");
}
};
The external swf contains text. When the text box is 'static text' it all works fine, but when the text box is 'dynamic text' it doesn't show when its brought into the container movie. It works fine in its own swf file, but once its brought into the other movie it doesn't show.
I've also tried bringing in an external text file using the following code:
myData = new LoadVars();
myData.onLoad = function(){
TextApply1.htmlText = this.apply1.split("\r").join("");
};
myData.load("text.txt");
stop();
But although it displays the text from the text.txt file perfectly in movie2.swf, once it is brought into the container movie it isn't visible.
There seems to be a problem showing dynamic text when one movie is contained inside another.
Any ideas??
Thanks very much
Rachel
I've searched the forums but can't seem to find anything that exactly matches my problem. I've created a movie 'container' (movie1.swf) which loads another swf (movie2.swf) into it when a button is pressed. The code I've used to do this with a transistion and preloader is:
btnNewmovie.onRelease = function() {
if (_root.section != "movie2.swf") {
_root.section = "movie2.swf";
_root.transition.gotoAndPlay("closing");
}
};
The external swf contains text. When the text box is 'static text' it all works fine, but when the text box is 'dynamic text' it doesn't show when its brought into the container movie. It works fine in its own swf file, but once its brought into the other movie it doesn't show.
I've also tried bringing in an external text file using the following code:
myData = new LoadVars();
myData.onLoad = function(){
TextApply1.htmlText = this.apply1.split("\r").join("");
};
myData.load("text.txt");
stop();
But although it displays the text from the text.txt file perfectly in movie2.swf, once it is brought into the container movie it isn't visible.
There seems to be a problem showing dynamic text when one movie is contained inside another.
Any ideas??
Thanks very much
Rachel