I'm still stuck on this... would somebody help me, I don't know why
this flash apparently doesn't want to read the xml from the attributes,
I changed the xml into utf-8 and nothing, I also set up _sans in the
css and nothing, does anyone knows how can I finally convince this
flash to show my spanish characters as ñ and the é(tildes)...thanks
Everyhting is ok, but the spanish characters. this is quite
disturbing because I speak spanish.
Gustavo
this is my code:
stop();
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.html=true;
target.htmlText ="<title>"+ this.data.title+"</title>"
+"<br>" +
"<text>"+this.data.text+"</text>";
}
}
}
menus.load("txt/poa.xml");
this is the xml
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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