# Add link inside Addchild

**URL:** <https://forum.kirupa.com/t/add-link-inside-addchild/291848>\
**Category:** flash\
**Created:** [July 6, 2009, 6:35pm UTC](https://forum.kirupa.com/t/add-link-inside-addchild/291848 "2009-07-06T18:35:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Post date:** [July 6, 2009, 6:35pm UTC](https://forum.kirupa.com/t/add-link-inside-addchild/291848/1 "2009-07-06T18:35:57Z")

</div>

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.height_j+MC.y+20_j;  
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](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 🙂
