package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var fFactorial:Function = function(nOperand:Number):Number{ if(nOperand > 0){ return nOperand * arguments.callee(nOperand-1); } else{ return 1; } } fFactorial(2); } } }