package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace(getCircumference(25)); // Displays: 78.53981633974483 } function getCircumference (diameter:Number):Number { var circumference:Number = diameter * Math.PI; return circumference; } }}
Name (required)
email (will not be published) (required)
Website