Large integer numbers fail parse
Posted: 24 Jul 2008, 12:30
When sending a large (more than 32bit) integer Number to my .as extension via json, the server reports an error:
My guess it that it recognizes the Number (a double) as an integer (which it is) and tries to cram it into a 32bit integer, which is too small, and it fails.
Quick fixes are easy, but -of course- not ideal:
Code: Select all
15:12:03.671 - [ WARNING ] > Error in extension [ myextension.as ]: TypeError: Cannot read property "getClass" from null (myextension.as.#1245) Internal: -238 -- Line number: (MainLib line: 1245)Quick fixes are easy, but -of course- not ideal:
- Either send the Number as a String and cast it to a Number.
- Or make sure the Number can't be written as an integer (ie make sure it has a decimal point)