A simple example of a method declaration using parameters
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var averageValue:Number = average(5, 11);
}
private function average(a:Number, b:Number):Number {
return (a + b)/2;
}
}
}