Solved

html formatting not appearing

Posted on 2004-10-06
10
150 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML 5 or Flash 7 495
Flash Player Action Script Error 1090 5 233
Missing Plugin for Firefox - Can't View Content 7 188
IE11 stops playing video on a certain website 10 109
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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.

732 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