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