# Problem with ENTER\_FRAME help please

**URL:** <https://forum.kirupa.com/t/problem-with-enter-frame-help-please/239936>\
**Category:** Uncategorized\
**Created:** [September 27, 2007, 1:20pm UTC](https://forum.kirupa.com/t/problem-with-enter-frame-help-please/239936 "2007-09-27T13:20:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SelectionTool](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@SelectionTool](https://forum.kirupa.com/u/SelectionTool)\
**Post date:** [September 27, 2007, 1:20pm UTC](https://forum.kirupa.com/t/problem-with-enter-frame-help-please/239936/1 "2007-09-27T13:20:15Z")

</div>

Just started migrating and am having problems with the enter frame event.Did a simple rotating star animation with the following code

[COLOR=MediumTurquoise]import flash.events.\*;

function rte(event:MouseEvent) {

```
function rotate(event:Event) {
    m_mc.rotation+=40;
}

m_mc.addEventListener(Event.ENTER_FRAME,rotate);

```

}

b\_mc.addEventListener(MouseEvent.CLICK,rte);

[COLOR=Black]When I press the button (b\_mc) more than once the star starts rotating faster every time.What is going on?Doesn’t happen in AS 2.0[/COLOR]  
[/COLOR]
