Solved

html formatting not appearing

Posted on 2004-10-06
10
147 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

770 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