calling a function using a string variable?

Hi I was wondering if its possible to call a function from a string variable e.g.

var callFunction : String = "CallFunction";

function Update(){

function CallFunction(){
	print("Call Function");

Actually, yes you can.


Invoke( callFunction, 0f );


Using Invoke you can also set a delay, (which is what the float is).

You can also combine strings with string variables, for example:

var myString : String = "Function2";

function CallFunction1 () {
    print("Call Function 1");

function CallFunction2 () {
    print("Call Function 2");

// this will run CallFunction2 in zero seconds
Invoke ("Call" + myString, 0);