# Simple event handler for MC (AS3)

**URL:** <https://forum.kirupa.com/t/simple-event-handler-for-mc-as3/307835>\
**Category:** flash\
**Created:** [April 11, 2010, 5:39pm UTC](https://forum.kirupa.com/t/simple-event-handler-for-mc-as3/307835 "2010-04-11T17:39:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggatlanta](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@ggatlanta](https://forum.kirupa.com/u/ggatlanta)\
**Post date:** [April 11, 2010, 5:39pm UTC](https://forum.kirupa.com/t/simple-event-handler-for-mc-as3/307835/1 "2010-04-11T17:39:04Z")

</div>

This should be easy, but I am unable to make it work. I am simply trying to start a timer when a dynamic movieclip (“mySlide”) has finished playing. Here’s my code:

```auto

mySlide.addEventListener(Event.COMPLETE, startTimer);
        
function startTimer(e:Event):void
    {
        trace ("timer started");
    }

```

I must be doing some simple thing wrong, as the COMPLETE event triggers nothing (whereas, ENTER\_FRAME causes the trace statement to fire).

What am I doing wrong here? In a nutshell, what I am trying to accomplish is to have an MC play… then hold for a determinable amount of time, then script a new function which will replace the MC with a fresh MC.

Thanks!

Graham
