Timer

sample button instance = test


test._visible=false;
var timer = getTimer();
if (timer >=10000){
test._visible = true;
}

what is wrong with this code
i want the button to appear 10 seconds after the page loads