[Flash 8] Class function

What am I doing wrong on the below code?? I want the function beginInterval to run?

 
class someclass extends MovieClip
{
 
public function someclass()
 {
_level0.something.onRelease = function() {
   beginInterval(1000);
 } 
}
 
 public var intervalId:Number;
 public function beginInterval(timedelay):Void {
     // do something
 }
 
}