# Actionscript: address attached movies

**URL:** <https://forum.kirupa.com/t/actionscript-address-attached-movies/188841>\
**Category:** flash\
**Created:** [May 11, 2006, 9:15am UTC](https://forum.kirupa.com/t/actionscript-address-attached-movies/188841 "2006-05-11T09:15:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seltec](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@seltec](https://forum.kirupa.com/u/seltec)\
**Post date:** [May 11, 2006, 9:15am UTC](https://forum.kirupa.com/t/actionscript-address-attached-movies/188841/1 "2006-05-11T09:15:08Z")

</div>

Hello,

I’m making a dynamic menu in flash, driven by a XML file.  
I attach a movieclip using this code:

```auto
for (var i=0; i<items.length; i++) {
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
}

```

I’d like to add a rollover effect using the mx.transitions class, but I don’t know how to address the attached movie?

I tried this one but it doesn’t work:

```auto

this.menu_mc["item"+item_count].onRollOver = function(){
...
}

```

Can anyone please help me out? Thank you very much!
