PDA

View Full Version : htmlentities from php - xml - list componant? CS3


chidge
11-06-2009, 11:58 AM
Hi guys and gals

I have a list box in my flash file that I would like to display a string from an xml file that has been run though html entities in php

so for instance I need the string


Hey "Leonardo£$£$()*%£% '"' [1999]

to display as

Hey "Leonardo£$£$()*%£% '"' [1999]

I can get this to happen in my dynamic text boxes by using .htmlText to display but I have no idea how I would do this in the list box?

Any ideas - bit of an actionscript noob here.

Thanks in advance

chidge
11-06-2009, 12:40 PM
wooohooo I win :)

just convert the string using

utf8_encode()

in php before I write it to the xml file - works a treat


these were helpful:

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000934.html

http://php.net/manual/en/function.utf8-encode.php