Link to home
Start Free TrialLog in
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.
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

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

CyanBlue
Avatar of rlynjb
rlynjb

ASKER

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
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rlynjb

ASKER

thank you so much.. (^_^)