# Delay flash animation after mouseover

**URL:** <https://forum.kirupa.com/t/delay-flash-animation-after-mouseover/234326>\
**Category:** flash\
**Created:** [August 1, 2007, 12:48pm UTC](https://forum.kirupa.com/t/delay-flash-animation-after-mouseover/234326 "2007-08-01T12:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristjs](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kristjs](https://forum.kirupa.com/u/kristjs)\
**Post date:** [August 1, 2007, 12:48pm UTC](https://forum.kirupa.com/t/delay-flash-animation-after-mouseover/234326/1 "2007-08-01T12:48:06Z")

</div>

Hi,

I have l logo animation but i don’t want it to play every time a user runs over it with mouse.  
I’d like it to start playing after the user has stayed on the banner for 1 second (30 frames in my case). So if the user leaves the logo before 1 second, the animation wouldn’t start.

Can it be done with actionscript? If so then how 🙂  
I use flash for tweened animations and am not familiar with programming languages. So a code examlpe (or a link to one) would be very welcome;)

The code to activate the animation is as follows:

this.mask\_mc.onRollOver = function()  
{  
\_root.logo\_mc.spin\_mc.play();  
\_root.logo\_mc.play();  
\_root.text\_mc.play();  
}

Cheers,  
Sven
