Function definition with multiple arguments : Function parameters : Function Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Function » Function parameters »

 

Function definition with multiple arguments


 

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.
    
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Function
» Function parameters