Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/05/2006, 19:11
Avatar de AJVEvoluzione
AJVEvoluzione
 
Fecha de Ingreso: agosto-2004
Ubicación: Buenos Aires
Mensajes: 195
Antigüedad: 19 años, 8 meses
Puntos: 1
Pregunta ¿Cómo hago para que me reconozca las Ñ y los acentos?

Hola! tengo que tomar informacion con lenguaje html de un archico TXT para introducir en un swf; hasta ahí todo bien pero a la hora de mostrarme el texto no me aparecen ni los acentos ni las ñ alguien sabía como hacer para que me los tome?

1_ Tengo un frame donde va el texto dinamico que llamo myText
2_ Un frame con la sigueinte función
Código:
function addItems() {
	
	Title = myData.Title;

	myText.multiline 			= true;
	myText.wordWrap 			= true;
	myText.type 				= "dynamic";
	myText.background 			= false;
	myText.backgroundColor  	= "";
	myText.border 				= false;
	myText.html 				= true;  

	myText.htmlText = myData.myText;
	ScrollBar.setScrollTarget(myText);
	

	formStyleFormat 			= new FStyleFormat;

		formStyleFormat.scrollTrack = "0x6F737E";
		formStyleFormat.highlight   = "0xCCCCCC";
		formStyleFormat.highlight3D = "0x0000FF";
		formStyleFormat.arrow 		= "0x0000FF";
		formStyleFormat.face 		= "0x333333";
		formStyleFormat.background  = "0x000000";
		formStyleFormat.shadow		= "0x222222";
		formStyleFormat.darkshadow	= "0x777777";
	
	formStyleFormat.addListener(ScrollBar);
	formStyleFormat.applyChanges();
	
	textFormat 									= new TextFormat();
	textFormat.color 							= "0xffffff";
	textFormat.bullet 							= false;
	textFormat.underline 						= false;
	textFormat.bullet							= false;
	textFormat.size							 	= 12;
	textFormat.font							    = "arial";
	
	myText.setTextFormat(textFormat);
}
3_ Un frame con la siguiente accion

Código:
myData = new LoadVars();
myData.onLoad = addItems;
myData.load("archivo.txt");
Si alguien sabe como hacer para que aparte de las etiquetas html me
reconozca los acentos y las Ñ voy a estar muy agradecido.