package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace("The player's average score is " + average(6, 10)); } private function average (a:Number, b:Number):Number { return (a + b)/2; } } }