# Is this AS OK

**URL:** <https://forum.kirupa.com/t/is-this-as-ok/205853>\
**Category:** flash\
**Created:** [November 2, 2006, 4:55pm UTC](https://forum.kirupa.com/t/is-this-as-ok/205853 "2006-11-02T16:55:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgomez84](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sgomez84/32/2962_2.png) [@sgomez84](https://forum.kirupa.com/u/sgomez84)\
**Post date:** [November 2, 2006, 4:55pm UTC](https://forum.kirupa.com/t/is-this-as-ok/205853/1 "2006-11-02T16:55:03Z")

</div>

I was just playing around with attachMovie before starting my project.  
How come both my mc’s are animating? Only d1 should animate while d2 should be stagnant at (0,0); isn’t it?

```auto

_root.attachMovie("man", "d1", getNextHighestDepth(), {_x:20, _y:30});
_root.attachMovie("man", "d2", getNextHighestDepth());

d1.onEnterFrame = function() {
    _x += 20;
    if (_x>500) {
        _x = 10;
    }
};

```
