Crazy bugs with japanese text!

Hello everybody!

Has anyone here worked with japanese text? More specific, working with embedding Arial Unicode MS and using it for japanese in textblocks? We can’t get this to work and we’re going nuts!

What you see below is the code we’re using, to me this looks OK but it doesn’t show up anything in the textfield(“theText”) and when we trace the text all I get is “”. And another thing is that if I trace the length of the textfield a get a correct value, 9 that is…

I guess that I’m just asking for someone to take a look att this and see if we’ve missed something!


var arial14:TextFormat = new TextFormat();
    arial14.font = "a14"; //this font is embedded in the library
    arial14.size = 14;
    arial14.color = 0x333333;
    
    theText.embedFonts = true;
theText.htmlText = "";
theText.html = true;

theText.htmlText = "軽量化されました。"

trace("text: "+theText.text);
    
    theText.setNewTextFormat(arial14);
    
    var my_fmt:TextFormat = theText.getNewTextFormat();

    for (var prop in my_fmt) {
        trace(prop+": "+my_fmt[prop]);
    }


     
theText