Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML AS3 can't get content to Italic

Status
Not open for further replies.

oenablx

Technical User
Feb 2, 2010
13
US
I have a swf in AS3 pulling a content from a xml but I can't use Italic on the font. Can someone help me?

Thank you

Code:
Action Script

var urlLoader:URLLoader=new URLLoader();
urlLoader.load(new URLRequest("xml/news.xml"));
urlLoader.addEventListener(Event.COMPLETE,onXMLFileLoaded);
stop();

function onXMLFileLoaded(e:Event):void
{
	var myXML:XML=new XML(e.target.data);
	content.text=myXML.content;
	content2.text=myXML.content2;
}

Code:
news.xml

<?xml version="1.0" standalone="yes"?>
<news>
  <content>Enrolling patients in programs sponsored by your organization can provide valuable opportunities to build brand loyalty through long-term relationships, while ensuring your patients receive the highest standard of care.</content>
  	<content2>EnPharmX develops customized Patient Care Programs for our clients which offer resources and savings to patients, while promoting use of your products through discount card offers, patient reminder programs, and informational materials.</content2>
</news>

Customer Services Call Center,
Call Center Services,
IVR Services, Database Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top