AS2 not rendering XML CDATA HTML links in flash

  • mrvix
  • Newbie
  • Newbie
  • mrvix
  • Posts: 7
  • Loc: Hong Kong

Post 3+ Months Ago

I have read through most of the numerous posts relating to this topic (and there are quite a few) but I am still unable to solve my problem. I have a simple AS2 script:

var theXML:Array = new Array();
var XMLtoLoad:XML = new XML();
XMLtoLoad.ignoreWhite = true;
XMLtoLoad.onLoad = function(success) {

function loadText(){
var theText:String = theXML[0].firstChild.nodeValue;

this.createTextField("my_txt", 10, 75, 200, 1000, 22);
my_txt.text = theText;
my_txt.autoSize = true;
my_txt.multiline = true;
my_txt.selectable = false;
my_txt.wordWrap = false;
my_txt.embedFonts = true;
my_txt.html = true;

my_txtFormat = new TextFormat();
my_txtFormat.font = "my_font";
my_txtFormat.size = 13;

Here is my xml:

<text><![CDATA[see google <a href=">here</a>]]></text>

Unfortunately (unless I am missing the concept of CDATA in xml) my text is rendered in flash as:

see google <a href=">here</a>

My ultimate goal is to generate text in flash that is generated from xml and that have a link to external urls. I do not have much experience with xml in flash, i have been looking online but can't seem to figure out what to do. Any ideas?

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.