Flash and XML
- Started
- Last post
- 4 Responses
- eps
Background:
I have an empty Flash movie that loads in data from an XML file. After loading the file I create a text field using actionscript, and the field is duplicated and populated based on the length of the XML content. One field for each element. Then based on attributes in the XML elements each field has one of five text styles applied to it. This all seems to be working fine.Issues:
1. I have HTML tags in my XML. The HTML tags and are being applied to the text properly, but the words that have the bold or ital formatting applied to them have commas before and after the words. Have you seen this?2. I created font symbols in the library for the fonts I am using in my movie, but when I embed the fonts I loose my HTML formatting (the commas are still there). The fonts seem to embed properly, but the formatting is gone. I tried making symbols of all the medium, ital and bold versions of the font but that doesn't seem to help. Any suggestions?
3. In one of the text formats I have the textField.bullet = true; but when I set embedfonts to true the bullet disappears. Is this a font issue or a flash issue?
Please help!!! Thank you for your time.
The Files are located at
http://www.method218.com/snowden…Eric
- unformatted0
you have to wrap your xml text with CDATA tags
- unfittoprint0
and if you use special (é, á, ã,...)characters you might want to encode the XML to UFT-8.
- eps0
I tried using th eCDATA tags and it didn't seem to work. It just displayed my html tags in the text. Any suggestions/examples?
E
- ********0
unfittoprint da man!