Add link inside Addchild

HI

I have an MC that I want to add to Stage dynamically. Until here everything seems fine:

for (var j:int = 0; j < nomePostosArray.length; j++) {
var MC:MovieClip = new mc();
namelistscroller.text.addChild(MC);
MC.name=“newsMc”+j;
trace(“newsMc”+j);
MC.y=MC.heightj+MC.y+20j;
trace(MC.y);
MC.nome.text = j+". "+nomePostosArray[j];
MC.morada.text = moradaPostosArray[j];
MC.codigo.text = codigoPostosArray[j];
MC.contacto.text = contactosPostosArray[j];
MC.mapLink = “http://www.symbolbox.pt”;
}

the variable mapLink is inside the MC. This should be a link that should follow when someone press the link button inside MC. This is the only part that is not working. Can anyone give me a hint?

Thanks :slight_smile: