# attachMovie and components

**URL:** <https://forum.kirupa.com/t/attachmovie-and-components/223620>\
**Category:** flash\
**Created:** [April 24, 2007, 1:31pm UTC](https://forum.kirupa.com/t/attachmovie-and-components/223620 "2007-04-24T13:31:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grptx](https://avatars.discourse-cdn.com/v4/letter/g/e0b2c6/32.png) [@grptx](https://forum.kirupa.com/u/grptx)\
**Post date:** [April 24, 2007, 1:31pm UTC](https://forum.kirupa.com/t/attachmovie-and-components/223620/1 "2007-04-24T13:31:29Z")

</div>

hi all,  
i’ve a problem with components and attachMovie.  
this is my simple test code:

```auto
var mc:MovieClip;
for (var i = 0; i<5; i++) {
    mc = attachMovie("mc", "mc"+i, i, {_x:200, _y:i*150});
    mc.testo.text = "plp"+i;
}

```

where “mc” is the the linking name of the movieclip in the library, and “testo” is the istance name of a textInput component inside the “mc” symbol.  
But the component dont display the text, why???  
if i put a normal dynamic textfield in the “mc” all work correctly (with the same code) so why with components not?

tnx to all
