private function calculateFactorial(n:String):String { var y:Number=1; for (var x:Number = 1;x <= Number(n); x++) { y = y * x; } return String(y); }