View Full Version : My textfield won't display html
richarddd
06-09-2007, 09:35 AM
Hello
I have a problem. I use xml to load information from an xml file but when i use html in the xml file flash does not displays it. I just see the tags in the text.
What is wrong? I'm 100% sure that i've checked "render as html" and i load the xml text with "blablabla.infoText.htmlText += policyInfoText;".
Any ideas?
atomic
06-09-2007, 01:58 PM
Look into CDATA...
http://www.flashdeveloper.nl/g_flash_xml_faq.html#5-D
http://rieff.ieor.berkeley.edu/~guyb/tutorial/adv_text.html
http://www.actionscript.org/forums/showthread.php3?t=134539
richarddd
06-09-2007, 04:30 PM
well... i use cdata in my xml file:
<profile>
<item hdline="About h75" infotext="INFORMATION ABOUT OUR COMPANY">
<text><![CDATA[H75 interactive design studio was founded in 2005 by young and tallented designer Richard Davison. Sinze then, the company has developed into a fullscale interactive designing office.<font color=\"Red\">Richard Davison (CV)</font>]]></text>
</item>
<item hdline="Vision" infotext="OUR COMPANY GOAL AND VISION">
<text><![CDATA[H75 Interactive Design is a passionate and energetic design studio committed to exeeding expectations. Our competencies include pre-production project discovery, complete brand overhauls, new identity development, full-service interactive design and engineering, and web-based content management utilities, and therefor we are suitable and commited to make the best website for your company or personal intresstes.]]></text>
</item>
<item hdline="Services" infotext="WE OFFER THE FOLLOWING SERVICES">
<text><![CDATA[- Rich and proffesional webdesign services (flash, html, dynamic, xml)
- Print services (posters, desktop backgrounds, ads)
- Design of unique logos and/or brands
- Image manipulation and photo retouching
- Catia 3d construction models]]></text>
</item>
<item hdline="Policy" infotext="COMPANY POLICY">
<text><![CDATA[Policy information added soon.]]></text>
</item>
</profile>
richarddd
06-24-2007, 05:26 PM
any thoughts? I still have problems with this :(
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.