# How to distinguish MovieClip from Object

**URL:** <https://forum.kirupa.com/t/how-to-distinguish-movieclip-from-object/272763>\
**Category:** flash\
**Created:** [October 8, 2008, 9:53am UTC](https://forum.kirupa.com/t/how-to-distinguish-movieclip-from-object/272763 "2008-10-08T09:53:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stratboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stratboy/32/3054_2.png) [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Post date:** [October 8, 2008, 9:53am UTC](https://forum.kirupa.com/t/how-to-distinguish-movieclip-from-object/272763/1 "2008-10-08T09:53:30Z")

</div>

Hi! I’ve got to do a parameter check for a method. That parameter can be an Object, like:

```auto
{ width:100, height:150 }

```

or a MovieClip.

How can I know if the passed parameter is a MovieClip or a simple Object?

- The typeof operator gives me always object
- The is and instanceof operators return me true anyway if I test MovieClip over Object.

Is there a way to directly know the final class of an object?
