Centering text in .xml file loaded into FLASH

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gsleitheiser
    New Member
    • Mar 2008
    • 1

    Centering text in .xml file loaded into FLASH

    I am looking to center a particular line of text in a <![CDATA[ text file that is loaded into a FLASH file. Here is he surrounding code and the line I need centered. I can't nest a <div style> or a <span style>. Please help. Thank you for your time.

    <item fontFamily="DIN Mittelschrift" name="linkText" ><![CDATA[

    <font color="#FF9900" >&quot;Everythi ng has it's beauty, but not everyone sees it.&quot;</font> - <i>Confucius</i>

    ]]</item>
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    Originally posted by gsleitheiser
    I am looking to center a particular line of text in a <![CDATA[ text file that is loaded into a FLASH file. Here is he surrounding code and the line I need centered. I can't nest a <div style> or a <span style>. Please help. Thank you for your time.

    <item fontFamily="DIN Mittelschrift" name="linkText" ><![CDATA[

    <font color="#FF9900" >&quot;Everythi ng has it's beauty, but not everyone sees it.&quot;</font> - <i>Confucius</i>

    ]]</item>

    If you are new to using forms you may want to google rules on proper form etiquette. It will help you get much better and faster responses. Specifically this question would likely get a better response in a flash or HTML form.

    Try googling for examples on setting CSS values using the style attribute in HTML tabs. It might let you set the test-align attribute in the font tag. If it does not you will need the flash app to parse the XML, put the text out, and set the layout values that way.

    Comment

    Working...