# How to call a function without the parenthesis?

**URL:** https://forum.kirupa.com/t/how-to-call-a-function-without-the-parenthesis/268976
**Category:** flash
**Created:** [August 21, 2008, 2:46am UTC](https://forum.kirupa.com/t/how-to-call-a-function-without-the-parenthesis/268976 "2008-08-21T02:46:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)
#### Post date: [August 21, 2008, 2:46am UTC](https://forum.kirupa.com/t/how-to-call-a-function-without-the-parenthesis/268976/1 "2008-08-21T02:46:01Z")

</div>

```auto
// doc class
public function killschool():void {
   school = "dead";
}

```

```auto
//other class
private function whattodo(action:Function):void {
   var runfunc:Function = action;
   docclass.runfunc; // error, no property of runfunc found within the main doc class.
}
whattodo(killschool);

```

I know its possible, just not sure how.
