Cast string as function

I want to have a loader function that passes the loaded data to the correct function. So I can do this:

loadFile ('nodeText.txt', 'makeNodeArray' );

function loadFile (loadFile:String, sendTo:String):void {
	var loader:URLLoader = new URLLoader();
	loader.addEventListener (Event.COMPLETE, playlistLoaded);
	function playlistLoaded (e:Event):void {
		switch (sendTo) {
			case 'makeNodeArray' :
				makeNodeArray (e.target.data);
				return;
			case 'makeLinkArray' :
				makeLinkArray (e.target.data);
				return;
		}
	}
	loader.load (new URLRequest(loadFile));
}

Is there any way to type the second variable to avoid the clumsy switch routine, like so:
Function (sendTo) ();