Hola que tal tengo un problema he buscado y buscado y no encuentro lo que busco ojala me puedan ayudar, es un formato para complementar textos donde si le doy clic en donde dice opcion me aparezca un numero de posibles respuestas, dinamicamente el texto lo cargo en xml y para poder distinguir distintos links en la caja de texto aplico setextformat pero solo a dos he podido y para empezar hay varios quiero evitarme linkear desde el xml porque son demasiados xml
un ejemplo:

Código :

var format1_fmt:TextFormat = new TextFormat();
format1_fmt.font = "Arial";
format1_fmt.color = 0x00CCDD;
var format2_fmt:TextFormat = new TextFormat();
format2_fmt.font = "Courier";
format2_fmt.color = 0xFFBF00;
var string1:String = "Sample string number one."+"   ";
//+newline
var string2:String = "Sample string number two.";
//this.createTextField("my_txt", this.getNextHighestDepth(), 0, 0, 300, 200);
this.createTextField("my_txt", 1, 0, 0, 300, 200);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.text = string1;
var firstIndex:Number = my_txt.length;
my_txt.text += string2;
var secondIndex:Number = my_txt.length;
my_txt.setTextFormat(0, firstIndex, format1_fmt);
my_txt.setTextFormat(firstIndex, secondIndex, format2_fmt);

He pensado en unas funciones como estas:

Código :

function formato(primero, segundo) {
   my_txt.setTextFormat(primero, segundo, format1_fmt);
}
function formato2(one, two) {
   my_txt.setTextFormat(10, 15, format2_fmt);
}
my_txt = formato(0, 3, format1_fmt);
my_txt = formato2(3, 5, format2_fmt);

donde le digo de que caracter a donde pero solo me funciona uno alguien me puede echar la mano