Try throwing some trace statements in there to see if things are being
instantiated correctly.

Specifically, after the createEMptyMovieClip try:

trace(_root.Art_MC);

and after the createTextField() call, try adding this:

trace(_root.Art_MC["Art_Txt"]);

It's possible something isn't being created and you've got some
undefined values.

You might also want to check out Xray (http://osflash.org/xray).  It's
helped me when having issues like this before, as you can look at
exactly what exists at runtime.

 -Andy

On 4/5/07, edward <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi everyone, any idea why the text does not show up?

- ----



_root.myRed = 0xFF0000;
_root.myLightGray = 0x999999;
_root.myDarkGray = 0x353535;

_root.Art_Fmt = new TextFormat();
with (_root.Art_Fmt) {
        font = "menuFont";
        size = 8;
        color = myLightGray;
        embedFonts = true;
}

_root.Art_MC = _root.createEmptyMovieClip("Art_MC", 0);
_root.Art_MC.createTextField("Art_Txt", i, 10, 10, 80, 20);
with (_root.Art_MC["Art_Txt"]) {
        border = false;
        autoSize = false;
        selectable = false;
        embedFonts = true;
        html = false;
}

_root.Art_MC["Art_Txt"].text = "Test Text!!!";
_root.Art_MC["Art_Txt"].setTextFormat(_root.Art_Fmt);

_root.onRollOver = function() {
        this["Art_Txt"].textColor = myDarkGray;
}
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wpwEAQECAAYFAkYVNoQACgkQnK42HzOJXBejgQP+N4+E+HWIZlFIb448AZFEzlbGEOye
hD6bKAUTOrsOoy0Vt/ZyLq7uKqh3Cbb906Xy4hdSjaH/ZHVJ8ten62xdokfd9ev7tyK8
y6v9QPjIQ23t6oAZiwZDu8eE992cghuI9Y5XXXSRS+UH/uke3ykUV5Q5kUWmglbi1vVV
utsPmTY=
=rylS
-----END PGP SIGNATURE-----

--
Click to find great rates on home insurance, save big, shop here
http://tagline.hushmail.com/fc/CAaCXv1QU9IdGnuLtTBUmTDA5ogVpQkF/


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to