# What does a MC on stage containes?

**URL:** <https://forum.kirupa.com/t/what-does-a-mc-on-stage-containes/307690>\
**Category:** Uncategorized\
**Created:** [April 8, 2010, 1:08pm UTC](https://forum.kirupa.com/t/what-does-a-mc-on-stage-containes/307690 "2010-04-08T13:08:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tzachikk](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@tzachikk](https://forum.kirupa.com/u/tzachikk)\
**Post date:** [April 8, 2010, 1:08pm UTC](https://forum.kirupa.com/t/what-does-a-mc-on-stage-containes/307690/1 "2010-04-08T13:08:31Z")

</div>

Hei.

Does anybody know a good way to use AS3 to check which movieclips instances a MC placed on the stage contains??

I tried to attach this code to a class extending a movieclip on the stage:

```auto
private var bodyParts:Array=new Array("head_mc","body_mc");

for (var i:int=0; i<bodyParts.length; i++) {
	if (this.hasOwnProperty(bodyParts*)) {
		trace("Contain: ",bodyParts*);
	}
}

```

but it doesn’t work, of course, because I define the properties myself in the array so i get true for: if (this.hasOwnProperty(bodyParts\*))

Anybody?
