+ Reply to Thread
Results 1 to 4 of 4

Thread: Bug in Client API (EsObject.as)

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Bug in Client API (EsObject.as)

    In the ActionScript 3 Client API, EsObject.toString() doesn't handle DataType.EsString correctly. It is handled as a number:

    Code:
    case DataType.Byte:
                        case DataType.Character:
                        case DataType.Double:
                        case DataType.Boolean:
                        case DataType.EsNumber:
                        case DataType.EsString:
                        case DataType.Float:
                        case DataType.Integer:
                        case DataType.Long:
                        	esobStr += dh.getLongValue().toString(10);
                        	break;
    It should be handled as a String:

    Code:
    case DataType.EsString:
    						esobStr += dh.getStringValue();
    						break;
    This bug causes an error to be thrown in one of the early examples/tutorials.

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,213
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    Thanks for this bug report - I'll try to get this fixed ASAP!
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. #3
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,213
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    Another member of the dev team noticed this and fixed it in mid-November. The bug was introduced by a 3rd member of the dev team when he added support for the long data type to AS3. If you do not need support for longs, you can use the ES5.3 AS3 swc instead, which does not have this bug. That version of the client api will communicate happily with an ES5.3.1 server.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  4. #4
    Junior Member
    Join Date
    Dec 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Perfect, thanks for the quick reply!

+ 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