Enabled true and false? temporary

peepz,

i want to disable a button temporary (for a few miliseconds) with this script:


on(release)
{
 
this.enabled = false;

enabler = function()
 {
  this.enabled = true;
  clearInterval(myInt);
 }
 
 myInt = setInterval(enabler, 10);
}

what im doing wrong?

im using flash8!

thnx already!