Avatar of rlynjb
rlynjb asked on

xml cdata wont load in flash as3

i am trying to load a cdata tag into flash using as3, but it won't load, i dont know what script, syntax i'm missing. please help.. will appreciate it
1. i want to load a picture using <img source> tag in CDATA to Flash as3 in a texfield (if its possible, im open to other container such as movieclip)
2. also, along with image, i want to load the description also.
Adobe FlashScripting LanguagesWeb Development

Avatar of undefined
Last Comment

8/22/2022 - Mon

Can you post what you have so far and let us know what kind of error/problem you are experiencing???


im not receiving errors, its just that when i test the movie, the CDATA tag dont appear.. i also tries entering just a regular text on the CDATA tag, still wont appear..

here is my as3 code:
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("testimonials.xml"));
loader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void {
	var testiXML:XML = new XML(e.target.data);
	txt.htmlText = testiXML.customer;
and here is my xml:
<?xml version="1.0" encoding="utf-8"?>
		<name>Jennifer and Jonathan</name>
			hi, thanks for the tips and your wonderful service. blah blah blah blah blah blah nlahowfwfwf fwifj werfjwqowf wfowfbf wfiww opwf wf bwfoijwf wfojwnfw fowfsgfg rfveg gfg n fwoinjf wofjwf wfojwnfw fwoiopw fdwfgu

Open in new window


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

thank you so much.. (^_^)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes