You have to create a timer variable that will be reseted when the mouse moves. If the timer is bigger than the defined amount, the thumbnail will be hidden.

Here's a quite example (I haven't tested it but it should work)
Code:
// Copy this into the "When movie starts" script.
var timer:uint = 0;
var lastMouseX:uint = 0;
var lastMouseY:uint = 0;
const timerLimit:uint = 60; // in frames

// Copy this into the "On every frame" script
if(mouseX != lastMouseX || mouseY != lastMouseY)
	timer = 0;

element("thumbnail").visible = !(timer >= timerLimit);

lastMouseX = mouseX;
lastMouseY = mouseY;
timer++;
Let me know whether it works or if you need further help (e.g. for a smooth fading effect etc.)