# Mark a MovieClip after xx seconds

**URL:** <https://forum.kirupa.com/t/mark-a-movieclip-after-xx-seconds/248340>\
**Category:** flash\
**Created:** [January 7, 2008, 9:38am UTC](https://forum.kirupa.com/t/mark-a-movieclip-after-xx-seconds/248340 "2008-01-07T09:38:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yes\_papa](https://avatars.discourse-cdn.com/v4/letter/y/eada6e/32.png) [@yes\_papa](https://forum.kirupa.com/u/yes_papa)\
**Post date:** [January 7, 2008, 9:38am UTC](https://forum.kirupa.com/t/mark-a-movieclip-after-xx-seconds/248340/1 "2008-01-07T09:38:56Z")

</div>

Hi,

Here seems to be a good place to have a response to my problem.

I want to mark a movieclip after xx seconds when the mouse is over it, like a rollover.

I use a tooltip script to test it.

```auto

tooltip._visible = false;

var tipInt;

// Define the function
function markMovieClip() {
    trace( "Tempo 3s");
}

b1.onRollOver = function() {
    tipInt = setInterval(showTip,100,"Button 1");
    myInt = setInterval(markMovieClip,3000);
}

b1.onRollOut = function() {
    hideTip();
    clearInterval(myInt);
}

var count = 0;

function showTip(tiptext) {
    if(count == 5) {
        clearInterval(tipInt);
        count = 0;
        tooltip.tiptext.text = tiptext;
        tooltip._x = _root._xmouse;
        tooltip._y = _root._ymouse;
        tooltip._visible = true;
        _root.onMouseMove = function() {
            tooltip._x = _root._xmouse;
            tooltip._y = _root._ymouse;
            updateAfterEvent();
        }
    }
    
    else {
        count++;
    }
}

function hideTip() {
    clearInterval(tipInt);
    tooltip._visible = false;
    delete _root.onMouseMove;
}

```

Could you give me a way to finalise it and to ugrade it.

Thx for all your helps.
