# Identify an object passed into a function? How?

**URL:** <https://forum.kirupa.com/t/identify-an-object-passed-into-a-function-how/226659>\
**Category:** flash\
**Created:** [May 22, 2007, 11:36pm UTC](https://forum.kirupa.com/t/identify-an-object-passed-into-a-function-how/226659 "2007-05-22T23:36:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vexir](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@Vexir](https://forum.kirupa.com/u/Vexir)\
**Post date:** [May 22, 2007, 11:36pm UTC](https://forum.kirupa.com/t/identify-an-object-passed-into-a-function-how/226659/1 "2007-05-22T23:36:55Z")

</div>

How do I identify an object that I pass into a function?

In my case I have 6 movieclips and 6 corresponding text fields (all 12 objects are on the main timeline) and the movieclips are named thumb1\_mc, thumb2\_mc, etcetc, and the text fields are named text1, text2, etcetc.

I have a method:

mcl\_mcl.onLoadProgress = function (targetMC, loadedBytes, totalBytes)

in which I need to change the appropriate text file’s text depending on which movieclip is targetMC.

The trouble is I can’t find a way to distinguish which mc it is, so I can’t pick which text file to change.

I tried using properties but that doesnt work because everything about the movieclip gets obliterated the moment I load something into them.
