What font are you using on the textfield? I had a similar problem with
Chinese characters and solved it by using the "_serif" or "_sans" font.

HTH,

Ryan Clemens

Technology Support Analyst, Principal

Distributed Learning

alt^I Applied Learning Technologies Institute

University Technology Office

 

(480) 965-0464    fax (480) 727-7476

http://alti.asu.edu    http://asuonline.asu.edu

 

Arizona State University


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Monday, June 25, 2007 10:42 AM
To: [email protected]
Subject: [Flashcoders] loading xml into flash in spanish

Hi coders, I have this code, it works perfect in english, but when I  
try to read the xml in spanish it doesn't work, read the question  
marks in a square instead of the characters, and when I change to the  
ñ in html or the &oaqute; it is the same, I even set up every  
single part of the code with the.html=true and nothing, please help  
me out guys, this is the code, and I'm attaching the xml as well.

Best Regards and Thanks


Gustavo



code:

menus = new XML();

menus.ignoreWhite = true;

menus.onLoad = function(success)
{

        var target = _root.screenTxt.myText_txt1;
        var holder = _root.menu;
        
        var titleMenus = this.firstChild.childNodes.length;
        var menuContent = this.firstChild;
        
        for (var i = 0; i < titleMenus; ++i )
        {

                var depth = holder.getNextHighestDepth();
                var btn = holder.attachMovie( "buttons", 'btn_' + i ,
depth
);
                
                btn._x = 0;
                btn._y = -10 * i * 4;
                
                btn.data = {
                        text: menuContent.childNodes[i].attributes.text,
                        title:
menuContent.childNodes[i].attributes.title
                };

                
                btn.poa.text = btn.data.title;
                btn.onRelease = function(){
                        
                        target.text ="<title>"+
this.data.title+"</title>" +"<br>" +
"<text>"+this.data.text+"</text>";
target.text.html=true;
                }

        }

}

menus.load("txt/poa.xml");


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to