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
rlynjb

8/22/2022 - Mon
CyanBlue

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

CyanBlue
ASKER
rlynjb

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..

thanks,
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"?>
 
<testimonials>
 
	<customer>
		<name>Jennifer and Jonathan</name>
		<picture><![CDATA[products/category1/pic1.jpg]]></picture>
		<message>
			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
		</message>
	</customer>
</testimonials>

Open in new window

ASKER CERTIFIED SOLUTION
CyanBlue

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
or
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
ASKER
rlynjb

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