flash actionscript:
Hi all, I am having an issue with some text that is loaded via XML .For some reason Flash is ignoring all char's that are accented. I have checked that both my XML and txt files are all saved with UTF-8 encoding, plus I have used the URL encoded equivalent for these char's. Still no success. Thanks.
A quick and dirty method is to try putting those characters right into your textField before you export the .swf. When it runs, it will replace what you have in the dynamic text field with the dynamic content from your XML file. I have noticed that sometimes, the embed doesn't seem to get ALL of the font characters that I would like for it to (especially bold, italic and bold-italic). These are commonly used by me for Flash/CSS purposes and if I just embed the regular font, it doesn't get the other ones called for by the CSS. I am interested to know if this will work for special accented characters as well. Let me know how it goes.
Just tried this it does not work, plus this textField will be outputting many other languages like Russian and Japanese so I would have a mess on my hands. I?ve tried everything, even switching over to a textArea component instead of my regular txt field. This renders Russian Cyrillic Chars better but still no accented ones. I've tried to including the desired Chars too, but this then drop's out certian ones in the english language.
Have you tried this? (from the Flash 8 docs) Select Window > Other Panels > Strings to open the Strings panel. Click the Settings button to show the Settings dialog box. Add a language by doing one of the following: In the Languages text box, highlight a language you want to select, and click the Add button. If the language does not appear in the Languages text box, in the blank field below the Languages text box, type a language code in the format xx (The the language code is from ISO 639-1.) Then click the Add button. After you click the Add button, the language appears in the Active Languages field. Repeat step 3 until you have added all the languages you want. Select a default language from the Default runtime language pop-up menu. This language appears on systems that do not have one of the active languages you selected. If you want to load an XML file for the languages from a different URL at runtime, type the URL in the URL text field. Click OK. A column for each selected language appears in the Strings panel. The columns appear in alphabetical order. Save the FLA file. When you save the FLA file, a folder for each language you selected is created in the same folder indicated in the SWF publish path. For more information, see Publishing Flash documents. If no SWF publish path has been selected, it is created in the folder the FLA file resides in. Within each language file an XML file is created that is used to load translated text.
Don't see what you're looking for? Try a search.
|