# Delaying a function when called by onRollOver

**URL:** <https://forum.kirupa.com/t/delaying-a-function-when-called-by-onrollover/282655>\
**Category:** flash\
**Created:** [February 24, 2009, 8:34pm UTC](https://forum.kirupa.com/t/delaying-a-function-when-called-by-onrollover/282655 "2009-02-24T20:34:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![almaline03](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@almaline03](https://forum.kirupa.com/u/almaline03)\
**Post date:** [February 24, 2009, 8:34pm UTC](https://forum.kirupa.com/t/delaying-a-function-when-called-by-onrollover/282655/1 "2009-02-24T20:34:37Z")

</div>

Can someone help me out. I need to put about a 3 second delay on this function when its called by btn1. Any ideas? Im a newbie ☹

```auto

function info1() {
new Tween(guitar1_info, "_alpha", Strong.easeOut, 0, 100, 2, true);
}

this.btn_1.onRollOver = function () {
	info1();
	if(frame = "end") 
	rewind = true; 
};

```
