package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ showGreeting("Mr. Whimsy"); showGreeting(); } function showGreeting(name:String = "stranger"):void { trace("Hello, "+ name + ", nice to meet you."); } } }