I ran into the following weird compile error recently:
compile error:
1071: Syntax error: expected a definition keyword (such as function) after attribute override, not protected.
in relation to the following code:
override
protected function createChildren():void {}
The solution?
override protected function createChildren():void {}
Don’t even get me started.