Ok, I've got a class that I've used that all it does is take in a
string of htmlText, create a textfield and apply it. But something is
happening that is killing the text for some reason;

If I send INTO the function this htmlText:

<TEXTFORMAT LEADING="-5"><P ALIGN="RIGHT"><FONT
FACE="QuadraatSans-Regular" SIZE="30" COLOR="#000000"
LETTERSPACING="0"
KERNING="0">whatever</FONT></P></TEXTFORMAT><TEXTFORMAT
LEADING="-5"><P ALIGN="RIGHT"><FONT FACE="QuadraatSans-Regular"
SIZE="30" COLOR="#000000" LETTERSPACING="0"
KERNING="0">man</FONT></P></TEXTFORMAT>

A textfield is created and applied, but then it turns into:

<TEXTFORMAT LEADING="-5"><P ALIGN="RIGHT"><FONT
FACE="QUADRAATSANS-REGULAR" SIZE="30" COLOR="#000000"
LETTERSPACING="0" KERNING="0">WHATEVERMAN</FONT></P></TEXTFORMAT>

and I can't figure out why.

Here's the code of the function:

function drawTitle(tTxt:String){
                title = tTxt.toUpperCase();
                
                if(!mcTxt){mcTxt = myMC.createEmptyMovieClip("boxes", 5)};
                
                var tR:Rectangle = new Rectangle(0,0, 250,50);
                if(_global.gApp.elements.length<5){
                        var tOffY = 350;
                }else{
                        var tOffY = 175;
                }
        
                var tOff:Point = new Point((myRect.xMax-tR.width), 
(tOffY-tR.height));
                tR.offsetPoint(tOff);
                // have to draw textField and make set width, extend bottom
                // then move up so bottom hits the correct bottom box,
                // then decide to draw 50 or 75
                var mTitle:TextField=mcTxt.createTextField("mc_title", 7, 
tR.x+22,
tR.y-14, 214, 0);
                mTitle.embedFonts = true;
                //mTitle.setNewTextFormat(_global.gPrefs.tfTitle);
                mTitle.autoSize="right";
                mTitle.html = true;
                mTitle.htmlText =title;
_______________________________________________
[email protected]
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