# \[FMX04\] - Help with searching movie clips

**URL:** <https://forum.kirupa.com/t/fmx04-help-with-searching-movie-clips/216413>\
**Category:** flash\
**Created:** [February 16, 2007, 6:25am UTC](https://forum.kirupa.com/t/fmx04-help-with-searching-movie-clips/216413 "2007-02-16T06:25:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mapes911](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mapes911](https://forum.kirupa.com/u/mapes911)\
**Post date:** [February 16, 2007, 6:25am UTC](https://forum.kirupa.com/t/fmx04-help-with-searching-movie-clips/216413/1 "2007-02-16T06:25:33Z")

</div>

Hi all,

I have the following code…

findDirectorNode = function(directorID):MovieClip  
{  
for (i=0; i\< \_root.numMaleDirectorNodes; i++)  
{  
if (i==0) dName = “directorNodeMale”;  
else dName = “directorNodeMale” + i;  
if (this[dName].directorID == directorID)  
{  
return this[dName];  
}  
}  
}

The point of this code is to be able to search through previously duplicated movie clips to find the one that I am trying to access… it doesn’t seem to be working even though I have a similar routine that does seem to work.

Anyone know of a better way to access/traverse the available movie clips to find the one I want?

Thanks
