# Function repeat

**URL:** https://forum.kirupa.com/t/function-repeat/282773
**Category:** flash
**Created:** [February 26, 2009, 9:53am UTC](https://forum.kirupa.com/t/function-repeat/282773 "2009-02-26T09:53:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mr\_marien](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@Mr\_marien](https://forum.kirupa.com/u/Mr_marien)
#### Post date: [February 26, 2009, 9:53am UTC](https://forum.kirupa.com/t/function-repeat/282773/1 "2009-02-26T09:53:49Z")

</div>

Hi,

I have a small problem, I want to repeat the function when you MOUSE\_OVER it…

```auto
p_rechts.addEventListener(MouseEvent.MOUSE_OVER, rechts);

function rechts(e:MouseEvent) {
    stoel.collada.rotationY -= 5;
    
}

```

now the “stoel” rotates 1 time -5, but i want it to repeat itself, till your mouse is of the button…

thanx
