Setting Default Values: add an equal sign (=) and the default value after an argument name
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."); } } }