+ Reply to Thread
Results 1 to 2 of 2

Thread: ***PLEASE READ*** Issues regarding ElectroServer 4.0.6 AS2 API.

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    341
    Thanks
    0
    Thanked 2 Times in 2 Posts

    ***PLEASE READ*** Issues regarding ElectroServer 4.0.6 AS2 API.

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

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,209
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    Please note that this is for ES4.0.6 and AS2 only. You should use the version of the API that matches the version of ES4 that your server is using.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts