package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ displayGreeting("Joey", "Good morning."); } function displayGreeting(sFirstName:String, sGreeting:String):void { trace("Hello, " + sFirstName + ". " + sGreeting); //Hello, Joey. Good morning. } } }