A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Loading XML with string data containning HTML tags...

  1. #1
    Junior Member
    Join Date
    Jul 2003
    Location
    Venezuela
    Posts
    27

    Loading XML with string data containning HTML tags...

    I need to keep in a Database all data of my client list, products, etc. Some of the "description" data has to be formatted with HTML tags in order to have Flash display it correctly in a Dynamic TextBox (You know: Lists, Bold Text, "mailto", etc. on the same block of text). At least, that's the only way I know how to format dynamic text on Flash.

    So far, I have not been able to load an XML file that would have some text in one of attributes contanning HTML tags. I worked it out putting the text on another file (.txt, saved as UNICODE, by the way), and in the corresponding attribute I just put the path to that file.

    This solved the problem of formatted text, but when any changes have to be made to the data, it's just not so dynamic anymore...

    Is there a way I can have an XML file capable of handling these HTML tags?

    Thanks in advance...

    Francisco
    Last edited by fpifano; 07-23-2003 at 10:14 AM.

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Junior Member
    Join Date
    Sep 2003
    Posts
    1
    hi,
    i'm not much of a programer but i'm triyng to use images along with the xml examples that you have in your site, can u help me with that?

    it's for a portfolio work, and i have to have several pictures with coments.

    i'd really apreciate your help on this

    how can i add images along with html formated text?

  4. #4

    Imgs with XML

    If you look at that tutorial with the link provided above it will show you how to incorporate HTML into an XML file and from an XML file properly. You need to then find the Image src tags used in HTML and process the request on the swf (flash) side when u parse the data, its as simple as that.
    :/

    kevin.beckett@future8.co.uk

  5. #5
    Senior Member dduck1934's Avatar
    Join Date
    Sep 2000
    Location
    Georgia, USA
    Posts
    155

    question about the HTML

    I put the html inside the XML file and Flash parses the html just fine EXCEPT it will put in random commas throughout the output text

    I was following the tupps example on this thread

    this is how my outlook in flash looks


    There is some ,Bold,
    , ,underline,
    and even
    ,italic?,
    . Thanks Helen for code to make a
    ,link


    again the html tags work, but they add commas in the text. Why is that?

    dduck1934
    Long Live the Duck!

  6. #6
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    - The right of the People to create Flash movies shall not be infringed. -

  7. #7
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    When you join an array together you can set what the delimiter is, make sure it is set to blank.
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

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