Try setting your textFormat after you apply the text. 
Also, I try to make sure the linkage name of the font is the same as the
actual font for the purpose that its easier to read and self descriptive. 

Order of operation does matter for this kinda thing, you have to embed fonts
before setting the text and set the textFormat after, I believe. For
example,  I know this works:

            var myTF=new TextFormat();
                myTF.color=0x666666;
                myTF.font="DINNeuzeitGroteskLight";
                myTF.size=10;

                this.createTextField("tf", 2, 0, 0, 100, 0);
                tf.autoSize = "left";
                tf.embedFonts=true;
                tf.multiline = true;
                tf.selectable=false;
                tf.wordWrap = true;
                tf.text = "Testing this out";
                tf.setTextFormat(myTF);


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn,
Michael
Sent: Wednesday, July 05, 2006 8:23 AM
To: Flashcoders mailing list
Subject: [Flashcoders] embedFonts vs. setTextFormat

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