# Get the object name of a mc

**URL:** <https://forum.kirupa.com/t/get-the-object-name-of-a-mc/247703>\
**Category:** Uncategorized\
**Created:** [December 28, 2007, 11:53am UTC](https://forum.kirupa.com/t/get-the-object-name-of-a-mc/247703 "2007-12-28T11:53:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thor918](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thor918](https://forum.kirupa.com/u/thor918)\
**Post date:** [December 28, 2007, 11:53am UTC](https://forum.kirupa.com/t/get-the-object-name-of-a-mc/247703/1 "2007-12-28T11:53:42Z")

</div>

I do the following:

1. I place a mc on the scene
2. I DO NOT give it a instance name  
would it be possible to read of the name of the mc object?  
I mean if you look in the flash IDE, you see that it says…  
instance of: object name…

BTW: I know I can get the instance name, if I set it. I’m just wondering, if one could read of the “instance of: object name”

here are the code that just goes through the objects on the scene:

```auto

movieclipsMatrise = new Array();
			var childMovieClip:DisplayObject;
			var i:int = this.numChildren;
			while(i--) {
			 	childMovieClip = this.getChildAt(i);
				if (childMovieClip is MovieClip){
				 //do sime check on what the object name is
				};
			};

```

8-]
