# Line up two MCS with a button using startDrag

**URL:** <https://forum.kirupa.com/t/line-up-two-mcs-with-a-button-using-startdrag/193319>\
**Category:** Uncategorized\
**Created:** [July 12, 2006, 4:32pm UTC](https://forum.kirupa.com/t/line-up-two-mcs-with-a-button-using-startdrag/193319 "2006-07-12T16:32:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Only\_Dust](https://avatars.discourse-cdn.com/v4/letter/o/f1d935/32.png) [@Only\_Dust](https://forum.kirupa.com/u/Only_Dust)\
**Post date:** [July 12, 2006, 4:32pm UTC](https://forum.kirupa.com/t/line-up-two-mcs-with-a-button-using-startdrag/193319/1 "2006-07-12T16:32:18Z")

</div>

I am trying to line up two MCS with a button using startDrag, but when I click to drag, the two MCS are not lined up, and the two MCS do not stop in the final position of the button that uses startDrag.  
Look the example: [http://img91.imageshack.us/my.php?image=teste17ha.swf](http://img91.imageshack.us/my.php?image=teste17ha.swf)

AS

```auto

var rolamento_mc:MovieClip;
rolamento_mc.onPress = function () {
    this.startDrag (false, this._x, 70, this._x, 290);
    this.onMouseMove = function () {
        mask_mc._y = _root._ymouse;
        fundo_mc._y = _root._ymouse;
    };
};
rolamento_mc.onRelease = rolamento_mc.onReleaseOutside = function () {
    this.stopDrag ();
    delete this.onMouseMove;
};

```

Sorry about my English.
