Mark a MovieClip after xx seconds

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.



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.