package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var fArea:Function = calculateArea; trace(fArea(6, 6)); } function calculateArea(a:Number, b:Number):Number { var nArea:Number = a * b; return nArea; } } } // 36