stevier
08-23-2007, 11:40 AM
I have a project where I am trying to create mathematical flashcards where students can practice their knowledge of set symbology, etc.
The flashcard content resides in an external xml file which is read into flash. I have used the unicode equivalent for the special characters, e.g., "\u223C" inside the xml.
The xml comes into the application just fine, but when I try to display the flashcard content inside the text field, I get only the code--\u223C--instead of the symbol. In fact, if I put the appropriate code straight into a variable and ask the text field to display that variable instead, it still doesn't work.
I have tried adding Arial Unicode MS to my library, as well as embedding every glyph in the book (despite its considerable file size) to no avail. I have also tried adding quotes around the symbol code, e.g., "\u223C" and '\u223C' as well, but that doesn't seem to help.
I've uploaded a zip file (it was just slightly too large for the attach feature) with the project xml and flash file. The code I'm using to "test" whether I can do this is on the actions layer of frame 1, lines 40-48. It won't "work" this way in the end, but I saw no point in continuing until I could get the characters to display.
The file is available at http://www.personal.psu.edu/sxr133/flash/flashcards.zip
Thanks for any advice you can offer,
Stevie
The flashcard content resides in an external xml file which is read into flash. I have used the unicode equivalent for the special characters, e.g., "\u223C" inside the xml.
The xml comes into the application just fine, but when I try to display the flashcard content inside the text field, I get only the code--\u223C--instead of the symbol. In fact, if I put the appropriate code straight into a variable and ask the text field to display that variable instead, it still doesn't work.
I have tried adding Arial Unicode MS to my library, as well as embedding every glyph in the book (despite its considerable file size) to no avail. I have also tried adding quotes around the symbol code, e.g., "\u223C" and '\u223C' as well, but that doesn't seem to help.
I've uploaded a zip file (it was just slightly too large for the attach feature) with the project xml and flash file. The code I'm using to "test" whether I can do this is on the actions layer of frame 1, lines 40-48. It won't "work" this way in the end, but I saw no point in continuing until I could get the characters to display.
The file is available at http://www.personal.psu.edu/sxr133/flash/flashcards.zip
Thanks for any advice you can offer,
Stevie