# Delay in Rollover Response

**URL:** <https://forum.kirupa.com/t/delay-in-rollover-response/119875>\
**Category:** Uncategorized\
**Created:** [August 18, 2004, 7:15pm UTC](https://forum.kirupa.com/t/delay-in-rollover-response/119875 "2004-08-18T19:15:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmarinelli](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bmarinelli](https://forum.kirupa.com/u/bmarinelli)\
**Post date:** [August 18, 2004, 7:15pm UTC](https://forum.kirupa.com/t/delay-in-rollover-response/119875/1 "2004-08-18T19:15:49Z")

</div>

I have a button that sits on the left hand side of my flash movie. When the user rollsover the button the user is navigated back to the first frame. My problem I want to make it so that the button taking the user back to the home page only after the user hovers over the button for say a second instead of responding instantly with just the on (rollOver) {} function.

I think that I can use a timer, when the user rollsover the button a timer would be triggered, once the predetermined time lapses I would need to be able to check if the user was still hovering over the button the responded, if not don’t responded. I am not sure how to check if the user is still over the button.

I have seen a delay with tool tips like on this forum page. Toll tips do not popup instantly when you roll over a tread… they only popup when the user pauses over the thread. I think however they are doing this would do the trick.

Anyway any help will be much apprieciated

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [August 18, 2004, 7:48pm UTC](https://forum.kirupa.com/t/delay-in-rollover-response/119875/2 "2004-08-18T19:48:18Z")

</div>

> [@bmarinelli](#):
>
> I have a button that sits on the left hand side of my flash movie. When the user rollsover the button the user is navigated back to the first frame. My problem I want to make it so that the button taking the user back to the home page only after the user hovers over the button for say a second instead of responding instantly with just the on (rollOver) {} function.
> 
> I think that I can use a timer, when the user rollsover the button a timer would be triggered, once the predetermined time lapses I would need to be able to check if the user was still hovering over the button the responded, if not don’t responded. I am not sure how to check if the user is still over the button.
> 
> I have seen a delay with tool tips like on this forum page. Toll tips do not popup instantly when you roll over a tread… they only popup when the user pauses over the thread. I think however they are doing this would do the trick.
> 
> Anyway any help will be much apprieciated

on the timeline  
//button instance name myButton  
function myRollOver() {  
clearInterval(myInterval);  
trace(“well rolled”);  
}  
myButton.onRollOver = function() {  
myInterval = setInterval(myRollOver, 1000);  
};  
myButton.onRollOut = function() {  
clearInterval(myInterval);  
};

---

<div class="post-metadata">

**Author:** ![bmarinelli](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@bmarinelli](https://forum.kirupa.com/u/bmarinelli)\
**Post date:** [August 19, 2004, 3:16pm UTC](https://forum.kirupa.com/t/delay-in-rollover-response/119875/3 "2004-08-19T15:16:10Z")

</div>

thaks this worked great

> [@stringy](#):
>
> on the timeline  
> //button instance name myButton  
> function myRollOver() {  
> clearInterval(myInterval);  
> trace(“well rolled”);  
> }  
> myButton.onRollOver = function() {  
> myInterval = setInterval(myRollOver, 1000);  
> };  
> myButton.onRollOut = function() {  
> clearInterval(myInterval);  
> };
