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