Solved

html formatting not appearing

Posted on 2004-10-06
10
145 Views
Last Modified: 2010-04-03
i am creating a website in flash MX which reads data from an xml file. the xml file contains a list of news article titles. the problem i face is this:-

some of the news articles have html formatting tags in them (like <br>, <u>, <a href> etc.) except for the underline tag, none of the other html tags work. the bold and italic tags appear as actual text. the anchor tag does not show at all. what should i do?
0
Comment
Question by:RTKHOT
10 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 34 total points
ID: 12235867
have you set ur textfield to render text as html?

textfieldnamel.html = true;
0
 
LVL 7

Expert Comment

by:ssdesign
ID: 12236251
can yuo give an example of your XML?
0
 

Author Comment

by:RTKHOT
ID: 12236767
<News_Content>&lt;B&gt;Philadelphia, PA, September 22, 2003 &lt;/B&gt;</News_Content>

this is just an example. i also have italic, and anchor elements emebedded. i tried substituting the &lt; with the xml code (&#60;b&#62;) and also directly as <b>. all 3 did not work.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 6

Assisted Solution

by:nishasrilankan
nishasrilankan earned 33 total points
ID: 12245842
convert the Node value to a string



TextBox.htmlText = XML_Node_Value.toString();
0
 
LVL 6

Expert Comment

by:nishasrilankan
ID: 12245856
var node:XML = new XML("<B><A href='dsd'>test</A></B>");
trace(node.firstChild.toString());

nisha.htmlText = node.firstChild.toString()
0
 
LVL 5

Assisted Solution

by:badrulnm
badrulnm earned 33 total points
ID: 12305223
Will this help?

Based on your example above, change the XML file content:

<News_Content>&lt;B&gt;Philadelphia, PA, September 22, 2003 &lt;/B&gt;</News_Content>

to:

<News_Content><![CDATA[<B>Philadelphia, PA, September 22, 2003 </B>]]></News_Content>
0
 
LVL 6

Expert Comment

by:nishasrilankan
ID: 12306179
Just Remove the CDATA..(Character formatting Tag)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now