dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Rendering text as HTML??

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    116

    Rendering text as HTML??

    I'm trying to import text from a text file (actually an xml file, but...) and want the text to appear in a dynamic textfield be rendered as html. It doesn't work...but does when I hardcode the html code in flash in say frame 1. What's up?

  2. #2
    Professional Air Guitarist Frag's Avatar
    Join Date
    Dec 2002
    Location
    Brain, Body, Clothes, Computer Chair, Room, House, Neighborhood, City, State, Country, Continent, World, Galaxy, Universe, and on?
    Posts
    811
    can you post the FLA?

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    116
    Here's an idea of what the xml file looks like.

    (item)
    (xNode)My First line of text(/xNode)

    (xNode)(u)underline(/u)(/xNode)

    (/item)

    The first Node appears right, but the second Node with the underline html coding doesn't appear at all. (note, I replaced all the < and > since this site on flashkit.com actually took it as html)


    I'm calling the text between the (xNode)(/xNode) by using the following flash code:

    imageText = xNode.firstChild.nodeValue;

    "imageText" is the variable of the dynamic textfield.

    Everything works except when I start adding html coding into the xml file.
    Last edited by flashkitok; 06-06-2003 at 06:56 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center