Alex Change the indexN_txt.defaultTextFormat = BLACK; into indexN_txt.setTextFormat(BLACK);
HTH Cor -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Alexander Farber Sent: maandag 22 december 2008 10:16 To: Flash Coders List Subject: [Flashcoders] AS3: non-latin characters not displayed Dear flash coders, I'm porting a small russian card game from AS2 to AS3 and currently struggle with the problem that the playing card (which is a sprite) indices (which are TextFields) do not display cyrillic letters (for jack, queen, king, ace). The digits (7,8,9,10) are displayed just fine. I've searched in internet and reread TextField and TextFormat docs, but can't find a solution. Here is my current code (I have to use embedFonts because the playing cards can be rotated): public class Card extends Sprite { .... private var index1_txt:TextField, index2_txt:TextField; private static var BLACK:TextFormat = new TextFormat('Arial', 24, 0x000000, true); private static var RED:TextFormat = new TextFormat('Arial', 24, 0xFF0000, true); // static initializer; place "1" closer to "0" in the "10" string { BLACK.letterSpacing = -4; RED.letterSpacing = -4; } public function Card() { ..... // 2 rank indices in the corners index1_txt = new TextField(); index1_txt.x = 2 - W/2; index1_txt.y = 10 - H/2; index1_txt.width = W/4; index1_txt.height = 22; //index1_txt.defaultTextFormat = BLACK; index1_txt.embedFonts = true; index1_txt.selectable = false; addChild(index1_txt); index2_txt = new TextField(); index2_txt.x = W/2 - 2; index2_txt.y = H/2 - 10; index2_txt.width = W/4; index2_txt.height = 22; index2_txt.rotation = 180; //index2_txt.defaultTextFormat = BLACK; index2_txt.embedFonts = true; index2_txt.selectable = false; addChild(index2_txt); Please help! ;-) Alex _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.19/1860 - Release Date: 21-12-2008 15:08 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

