For those of you still using ActionScript 2 and have noticed some issues building your projects with our AS2 API, we are well aware of the problem. Please download this new revision of the API as it fixes the compiler errors you may have been seeing. It also corrects some of the comment placement in the AS3 API to further prevent this issue from occuring.
The problem lies in the way that Adobe's ActionScript parser handles multi-line commenting. If it ever notices a multi-line comment block nested within another one, anything after the first ending element will cause everything after it to be included, even comment text. This is a known issue and seems to happen across the board in all of Adobe's Flash compilers. If you were not aware of this issue before, please make note of it. Here is an example of a comment block that breaks the parser.
Code:/* My comment text goes here. /* Uncomment these fictional variables to enable debug mode. */ And the rest of my comments go here. The ending element before me will cause both comment blocks to close. These comments may be included in AS parsing and cause your compiler to return an error. */ private function doThis():Void { // if this is debug mode, do this. }


Reply With Quote
