Passing Parameters to Your Function : Function : Function Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Function » Function »

 

Passing Parameters to Your Function


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
      trace(getCircumference(10));

    
    function getCircumference(diameter:Number):Number {
      return Math.PI * diameter;
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Function
» Function