# Is a component a Movie Clip?

**URL:** https://forum.kirupa.com/t/is-a-component-a-movie-clip/146230
**Category:** Uncategorized
**Created:** [April 29, 2005, 5:03am UTC](https://forum.kirupa.com/t/is-a-component-a-movie-clip/146230 "2005-04-29T05:03:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pup\_100](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pup\_100](https://forum.kirupa.com/u/Pup_100)
#### Post date: [April 29, 2005, 5:03am UTC](https://forum.kirupa.com/t/is-a-component-a-movie-clip/146230/1 "2005-04-29T05:03:02Z")

</div>

[font=verdana, arial, helvetica][size=2][color=#4f5044]Hi,

I have been using a “Button” component in conjunction with some Movie clips in a simple script that should move all the movie clips to a predetermined \_x position, having been filtered by an “instanceof MovieClip” condition

Problem is, for some reason MX2004 is reading the button component as a Movie Clip & moving it along with the others.

Here is the script.

[/color][/size][/font][indent]

```auto
mybuttonlist=new Object();

 
 
mybuttonlist.click=function()
{
for (i in _root){
if(_root* instanceof MovieClip){ 
_root*._x=50; 
}
}
 
 
} 
mybuttonlist// add listener etc.

```

[/indent][font=verdana, arial, helvetica][size=2][color=#4f5044]

Can anyone shed any light as to where I’m going wrong?[/color][/size][/font]
