# Call function from external method in same class

**URL:** <https://forum.kirupa.com/t/call-function-from-external-method-in-same-class/304021>\
**Category:** flash\
**Created:** [January 31, 2010, 12:57am UTC](https://forum.kirupa.com/t/call-function-from-external-method-in-same-class/304021 "2010-01-31T00:57:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzman121](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jazzman121/32/127_2.png) [@jazzman121](https://forum.kirupa.com/u/jazzman121)\
**Post date:** [January 31, 2010, 12:57am UTC](https://forum.kirupa.com/t/call-function-from-external-method-in-same-class/304021/1 "2010-01-31T00:57:26Z")

</div>

For some reason I cant figure this out,

I have a function thats in a method in a class…

I have a second method in the same class, trying to call the function from the second method

eg:

```auto

package com.sarin
{
	import flash.display.*;
	import flash.events.*;
	
	public class TestingClass extends MovieClip
	{
		public function TestingClass() 
		{	
			function insideFunction()
			{
				myMC.gotoAndPlay(15);
			}
			
		}
		public function methodTwo()
		{
			trace("test");
			insideFunction();
		}
		
	}
	
}

```

trying to get insideFunction() called from methodTwo()

Hope that makes sense

thanks
