PDA

View Full Version : dynamic text won't show in 'container' movie clip


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

Billy T
02-07-2005, 02:12 PM
is the loaded movie masked? If so, embed the font

Rach73
02-07-2005, 02:24 PM
Yes it is! Thank you!

It's so simple when you know how!

SirNapalm
06-06-2005, 02:55 PM
I am pretty sure it works if you use .setMask(); without embeding your fonts.

Leon187
06-06-2005, 03:04 PM
I am using exactly the same script and have had exactly the same problem but I am using input text (I have a form on one of my swf files). I have a mask on my main movie, I have tried embedding the font but when the text was input it came out really blocky and illegible. Sir Napalm, could you elaborate a bit on the setmask function?

oldnewbie
06-06-2005, 03:08 PM
setMask(); only works with a non-embedded font if you're only masking the textfield. If you're further manipulating the text (fade, tween, rotation, etc...), the font needs to be embedded.
Furthermore if not using a standard font, and not embedding it, you can't be sure every user will see the exact same font.