# How to make it play() just once on every Mouse\_Over on AS3

**URL:** <https://forum.kirupa.com/t/how-to-make-it-play-just-once-on-every-mouse-over-on-as3/332074>\
**Category:** flash\
**Created:** [January 19, 2014, 9:31am UTC](https://forum.kirupa.com/t/how-to-make-it-play-just-once-on-every-mouse-over-on-as3/332074 "2014-01-19T09:31:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis1](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@Denis1](https://forum.kirupa.com/u/Denis1)\
**Post date:** [January 19, 2014, 9:31am UTC](https://forum.kirupa.com/t/how-to-make-it-play-just-once-on-every-mouse-over-on-as3/332074/1 "2014-01-19T09:31:21Z")

</div>

Hello,

I am such a greenhorn for this code, and am trying to get this right from weeks now.  
I am trying to make a the code for playing on every Mouse Over just once, but it keeps looping.  
I have this:

stop()  
this.home.addEventListener(MouseEvent.ROLL\_OVER, function(e:MouseEvent): void{  
play();  
});

and I guess that I have to removeEventListener after if fires the first time with this like:

this.home.removeEventListener(MouseEvent.ROLL\_OVER, arguments.callee);  
play();

But it doesn’t work. :stare: Any ideas please?  
Deno
