package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ } private function sampleMethod ( ):void { return "some value"; // This causes the compiler to generate an error. } } }