Loading a movieA in another movieBase and show dynamic textFields?

Hi all,

I got a problem with loading a movieA in another movieBase and show dynamic textFields.

Let me explain:

In movieA i got:


_global.movieA = this;

so i can use that as reference to _root of movieA

Everything works except the dynamic textFields with a custom textFormat. This is the as-part.


clip.attachMovie ("txtBG", "txtBG" + child, 0);
//here i am formatting the textfield
var tf = new TextFormat ();
tf.size = 12;
tf.color = 0x000000;
tf.font = "augie";
movieA.clip.createTextField ("txt", child + 1, 1, 1, 200, 35);
clip.txt.autoSize = true;
clip.txt.selectable = false;
movieA.clip.txt.setNewTextFormat (tf);
movieA.clip.txt.embedFonts = true;
//set the client name
movieA.clip.txt.text = myClients[k];

When i load movieA in movieBase i can see the “txtBG” s, but not the text. When just testing movieA i can see the text.

Any ideas, solutions

[AS]
movieA.clip.txt.setTextFormat (tf);
[/AS]

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary788.html

Is movieA the global variable movieA ? If so, change movieA to _global.movieA.

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary379.html

I’m not sure the _global will work; if it doesn’t, replace _global with _root.

thnk voetsjoeba,

Gonna look into that, but i used the following:

http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.htm

Furthermore, i got the solution by including the font in the movieBase and i set the linkage ( i already included it in movieA) and now it works.

But i wanna learn so anybody knows why???