Try using setNewTextFormat() instead..

Mendelsohn, Michael a écrit :
Hi list...

The embedFonts line seems to prevent the setTextFormat line from
working.  What am I missing?  The font "univ" is in the library, and its
linkage is "univ."

Thanks,
- Michael M.

        private function createSlideWatcher():Void {
                var tf:TextFormat = new TextFormat();
                tf.font = "univ";
                tf.color = 0xFFFFFF;
                tf.size = 30;
                _root.createTextField("slideWatcher",
_root.getNextHighestDepth(), 10, 10, 150, 150);
                _root.slideWatcher.background = true;
                _root.slideWatcher.backgroundColor = 0x666666;
                _root.slideWatcher.embedFonts = true;
                _root.slideWatcher.setTextFormat(tf);
                _root.slideWatcher.text = "hi";
        }

_______________________________________________
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