# \[Flash 8\] Class function

**URL:** <https://forum.kirupa.com/t/flash-8-class-function/208648>\
**Category:** flash\
**Created:** [November 30, 2006, 9:29pm UTC](https://forum.kirupa.com/t/flash-8-class-function/208648 "2006-11-30T21:29:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coogie](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@Coogie](https://forum.kirupa.com/u/Coogie)\
**Post date:** [November 30, 2006, 9:29pm UTC](https://forum.kirupa.com/t/flash-8-class-function/208648/1 "2006-11-30T21:29:14Z")

</div>

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

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

```
