# 2nd movie takes attributes of first!

**URL:** https://forum.kirupa.com/t/2nd-movie-takes-attributes-of-first/176727
**Category:** Uncategorized
**Created:** [January 26, 2006, 12:45pm UTC](https://forum.kirupa.com/t/2nd-movie-takes-attributes-of-first/176727 "2006-01-26T12:45:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)
#### Post date: [January 26, 2006, 12:45pm UTC](https://forum.kirupa.com/t/2nd-movie-takes-attributes-of-first/176727/1 "2006-01-26T12:45:57Z")

</div>

I have one movie clip ‘MAIN\_MC’ which contains another movie clip ‘SUB\_MC’ which have the same AS but differernt speeds to move, but they move in union with eachother as if they are grouped!

CODE on each clip being:

ClipEvent (load) {  
//this sets the initial x position of our clip  
this.\_x = 500;  
}  
onClipEvent (enterFrame) {  
//this moves our clip 5 pixels to the right every frame until it reaches a certain point  
if (this.\_x\>10) {  
this.\_x += -20;  
}  
}

What am I doing wrong?
