# Target dynamically loaded movieclips for rollover

**URL:** <https://forum.kirupa.com/t/target-dynamically-loaded-movieclips-for-rollover/211617>\
**Category:** Uncategorized\
**Created:** [January 3, 2007, 5:22pm UTC](https://forum.kirupa.com/t/target-dynamically-loaded-movieclips-for-rollover/211617 "2007-01-03T17:22:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NHansen](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@NHansen](https://forum.kirupa.com/u/NHansen)\
**Post date:** [January 3, 2007, 5:22pm UTC](https://forum.kirupa.com/t/target-dynamically-loaded-movieclips-for-rollover/211617/1 "2007-01-03T17:22:58Z")

</div>

hello, I have a script that loads images and text from an XML file into movieclips.  
The following code is what creates the movieclips that contain the elements:

```auto
var thumb_mc:MovieClip = _root.mc_conteudo.createEmptyMovieClip("thumb"+(1+i), _root.mc_conteudo.getNextHighestDepth());
var img_mc:MovieClip = thumb_mc.createEmptyMovieClip("img", 0);

```

I can’t seem to find a way to target the thumb\_mc or the img\_mc so they have rollover effects and actions (they are created for each set in the xml file, so there are multiple mc’s)  
mc\_conteudo is the content mc that scrolls.  
The swf is here:  
[http://therealnickhansen.com/FLA](http://therealnickhansen.com/FLA)  
Any help would rock, thanks.
