# How change the \_level onPress?

**URL:** <https://forum.kirupa.com/t/how-change-the--level-onpress/217894>\
**Category:** Uncategorized\
**Created:** [March 2, 2007, 7:09pm UTC](https://forum.kirupa.com/t/how-change-the--level-onpress/217894 "2007-03-02T19:09:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [March 2, 2007, 7:09pm UTC](https://forum.kirupa.com/t/how-change-the--level-onpress/217894/1 "2007-03-02T19:09:17Z")

</div>

[FONT=Georgia]my code for drag the movieclip:[/FONT]

```auto

        /* iniciar drag */
        blog.dragit.onPress = function() {
            blog.alphaTo(70,1);
            blog.startDrag();
        }
        blog.dragit.onRelease = blog.dragit.onReleaseOutside = function() {
            blog.alphaTo(100,1);
            blog.stopDrag();
        }
        /* stop drag */

```

[FONT=Georgia]When i have two movieclip and Press and drag one, this may stay one level up the other, and if i click in second movieclip and drag up to the first, the second now may stay up one level …  
Anyone has the idea how to make it dynamic?

Tks in advance[/FONT]
