2 Replies Latest reply on Feb 14, 2008 1:37 PM by Greg Dove

    CDATA with Flash

    PKENGLISH Level 1
      I'm trying to make some of the text in my XML bold and italic. I read that you need to use CDATA to make it so the tags actually work but I'm having issues with it working. Here is my XML (with what i want to be bold)

      Thanks!

        • 1. Re: CDATA with Flash
          Level 7
          Here is how to use CDATA in xml: http://www.w3schools.com/xml/xml_cdata.asp
          Note that everything inside a CDATA section is ignored by the parser. So
          that means your <b> tags may not work once you get it into flash.

          --
          Dan Smith > adobe community expert
          Flash Helps > http://www.smithmediafusion.com/blog/?cat=11
          http://www.dsmith.tv


          "PKENGLISH" <webforumsuser@macromedia.com> wrote in message
          news:fp1vlm$dms$1@forums.macromedia.com...
          > I'm trying to make some of the text in my XML bold and italic. I read
          > that you
          > need to use CDATA to make it so the tags actually work but I'm having
          > issues
          > with it working. Here is my XML (with what i want to be bold)
          >
          > Thanks!
          >
          >
          >
          > <?xml version="1.0" encoding="utf-8"?>
          > <gallery name="houses">
          >
          > <item dir="AppleAlley/" name="Apple Alley" location="Milford, PA"
          > desc="This
          > newly-built shingle-style Victorian house was inspired by an historic
          > photograph of the building that had occupied its site for nearly one
          > hundred
          > years. The interior has been re-imagined for modern living, with an open
          > kitchen and generous living areas that comfortably accommodate large
          > family
          > gatherings.
          >
          > <b><i>Project Under Construction</i></b>">
          >
          > <image file="apple_alley_1.jpg" />
          > <image file="apple_alley_2.jpg" />
          > <image file="apple_alley_3.jpg" />
          > </item>
          > </gallery>
          >


          • 2. Re: CDATA with Flash
            Greg Dove Level 4
            I believe CDATA really is the best way to do this for pulling html in via xml. There are some other posts in this forum on the subject... if you search in AS 1& 2 for CDATA you should find some. search was giving me errors when I tried just now but I'm sure it will just be transient.

            Here's a quick example that might show you how to do things.