# AS2 Shape motion on Button Hold

**URL:** <https://forum.kirupa.com/t/as2-shape-motion-on-button-hold/241556>\
**Category:** flash\
**Created:** [October 15, 2007, 3:42pm UTC](https://forum.kirupa.com/t/as2-shape-motion-on-button-hold/241556 "2007-10-15T15:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogatan](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@bogatan](https://forum.kirupa.com/u/bogatan)\
**Post date:** [October 15, 2007, 3:42pm UTC](https://forum.kirupa.com/t/as2-shape-motion-on-button-hold/241556/1 "2007-10-15T15:42:13Z")

</div>

Hey guys,

was hoping someone could help me with this.

I am trying to move a shape across the screen incrementaly as someone holds a button.

This is what I have so far.

on (press) {  
shape.\_y -= 5;  
}

This works but I have to press the button about a hundred times to move the shape across the screen.

Any help on this will be greatly appreciated.

Thanks in advance.
