Call and run a function from an array of functions?

So I’m attempting to call a random item from an array which is all fine and dandy, but I’m attempting to fill the array with functions, and therein lies my problem.

Here is my code, it’s just a test file I made to keep it simple while I learn how to do it:


var functionArray:Array = new Array('a', 'b', 'c');

function a():void
{
	trace("a!");
}
function b():void
{
	trace("b!");
}
function c():void
{
	trace("c!");
}

stage.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void
{
	var randomNum:int = Math.floor((Math.random() * functionArray.length));
	(functionArray[randomNum])();
}

The final product would involve me clicking the stage and getting a random letter yelled back at me via trace. This is not exactly what I need for my game but this is the basic structure that I can then build upon later.

Any suggestions?