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
Name (required)
email (will not be published) (required)
Website