Read about the TextFormat class. It should do almost everything that you need to do! Note the XML string below has almost all types of text formatting in it.

Let me know if you have questions.

<TEXTFORMAT LEADING="2"><LI><FONT FACE="_sans" SIZE="12" COLOR="#666666"><B>THis is some crap! </B><FONT COLOR="#1B66A9"><B>;lkkajsd;lkfj;lkasfdasdfasdf</B><FONT COLOR="#000000"></FONT></FONT></FONT></LI></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#1B66A9"><B>some changes</B><FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#1B66A9"><B>asdfasdf</B><FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#1B66A9"><B>asdf</B><FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#1B66A9"><B>asdf</B><FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#1B66A9"><B>asdf</B><FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#1B66A9"><B>asdf</B><FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans" SIZE="12" COLOR="#1B66A9"><B>asdf</B><FONT COLOR="#000000"></FONT></FONT></P></TEXTFORMAT>

On Nov 16, 2005, at 2:08 AM, Paul Steven wrote:

Thanks a million Keith

One more question.

Is it possible to make several sentences in a paragraph a different font
size?

i.e Can I somehow put some sort of CSS span stlyle to a section of the text
in the XML file?

Thanks

Paul

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Keith
Reinfeld
Sent: 15 November 2005 19:12
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] External text from XML file including
superscriptanditalic


Paul,

In your XML document:

(Watch the wrap.)

<someTag><![CDATA[Grandios ProductNameT <i>italic description</i> content
text here.]]></someTag>

You can enter the "TM" directly into the XML document by holding down Alt
and typing 0153 on the numberpad.

HTH

-Keith

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: Tuesday, November 15, 2005 11:01 AM
To: Flashcoders mailing list
Subject: [Flashcoders] External text from XML file including superscript
anditalic

I have a flash page that includes several sections of text that are read in
from an XML file.

I have worked out how to do this assuming all the text formatting is one
style. However I would like some of the text to be in italic and it to
include the "TM" as superscript.

Ideally I could just write the text in the xml file as I want it to appear on screen in the flash movie. Can anyone advise me if this is possible and
how. Or if it isnt possible then what is my best option.

Basically the client will be updating the content of the site by replacing the xml files and the text needs to have italics and superscript. I do hope
this is possible:)

Many thanks

Paul

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to