# Function's function

**URL:** <https://forum.kirupa.com/t/functions-function/48858>\
**Category:** flash\
**Created:** [April 17, 2004, 4:33pm UTC](https://forum.kirupa.com/t/functions-function/48858 "2004-04-17T16:33:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ling\_Nightsky](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@Ling\_Nightsky](https://forum.kirupa.com/u/Ling_Nightsky)\
**Post date:** [April 17, 2004, 4:33pm UTC](https://forum.kirupa.com/t/functions-function/48858/1 "2004-04-17T16:33:24Z")

</div>

is it possible to do something like this?

```auto

mc.onRelease = function() {
      testFunction(_root.releaseFlag, studentPanel, source);
}

studentPanel = function() {
     trace(mySource);
}

testFunction = function(myFlag, myFunction, mySource) {
	this.onEnterFrame = function () {
		if(myFlag == true){
		      myFunction(mySource);
		}else{
		      this.onEnterFrame = null;
		}
	}
}

```

so far, it works until when it comes to  
myFunction(mySource);  
doesn’t seems to be calling the function…

how do i get the myFunction to be called?
