I had a function that occured on mouseclick called go_out. I want this function to occur when the timer fires after 5 seconds. After the 5 secons I receive this error:


TypeError: Error #1034: Type Coercion failed: cannot convert flash.utils::Timer@3fe4561 to flash.display.MovieClip.
at home_flash_fla::MainTimeline/go_out()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()


*****************************


var myTimer:Timer = new Timer(5000);
myTimer.addEventListener("timer", go_out);
myTimer.start();



function go_out(e:TimerEvent)
{
var mc:MovieClip = MovieClip(e.target);


fm_tween = new Tween(mc, "x", Strong.easeIn, mc.x, 100, tween_duration, true);
fm_tween.addEventListener(TweenEvent.MOTION_FINISH , go_in);
new Tween(mc, "y", Strong.easeIn, mc.y, -180, tween_duration, true);
}

Let me know if you have any suggestions!