# Loop action

**URL:** <https://forum.kirupa.com/t/loop-action/225391>\
**Category:** Uncategorized\
**Created:** [May 11, 2007, 8:58am UTC](https://forum.kirupa.com/t/loop-action/225391 "2007-05-11T08:58:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![megalord](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@megalord](https://forum.kirupa.com/u/megalord)\
**Post date:** [May 11, 2007, 8:58am UTC](https://forum.kirupa.com/t/loop-action/225391/1 "2007-05-11T08:58:24Z")

</div>

HI !

I’m creating an animation but I’m having problems with a loop.

What I want is to create a button (or movieClip?), that will make move Down another movieClip continuously, until the mouse stops pressing the button (or movieClip?).

Basicly I want to create some kind of loop that will be started wen I press a button, and stops wen I release the button.

The code I want in the loop is:  
pagina.\_y += 10;

I’m using Flash MX Professional 2004, ActionScript 2.

Can someone help me?

Thanks.
