Writting Class functions in a different file


I am trying to write/call class functions in an external file. But the class doesn’t seem to have a direct access to that.

I mean suppose my class is in a file MyClass.as, now i want to write few functions in a seperate file(.as) and call that , so is that possible. I tried the “include” and “import” syntax but it doesn’t have direct access.

For example-

[COLOR="Gray"]//MyClass.as[/COLOR]

package {
	
	import flash.display.Sprite;
	
	            public  class MyClass extends Sprite
	           {
		                 public function MyClass()
		                 {
			                 // want to call callme() and simplefunc from External.as
		                 }
	           }
	 
          }

[COLOR="Gray"]// External.as[/COLOR]

public function callme:void()
{
	trace("who called me");
}
	 
function simplefunc()
{
	trace("Called me");
}