# Calling functions inside functions

**URL:** <https://forum.kirupa.com/t/calling-functions-inside-functions/251803>\
**Category:** Uncategorized\
**Created:** [February 12, 2008, 8:31pm UTC](https://forum.kirupa.com/t/calling-functions-inside-functions/251803 "2008-02-12T20:31:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mleep](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mleep](https://forum.kirupa.com/u/mleep)\
**Post date:** [February 12, 2008, 8:31pm UTC](https://forum.kirupa.com/t/calling-functions-inside-functions/251803/1 "2008-02-12T20:31:14Z")

</div>

question is a simple one, how do i get the function call “testFunc” to be recognized inside this movieclips “onRelease” call ?

```auto

    public function mouseHandler ( ) {

        testMovieClip.onRelease = function() {
            
            this.stopDrag( );
            
            testFunc( );
        }
    }        
            
    public function testFunc( ):Void { 
        
        trace ( "Blah" );
    }

```
