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]