Hi all Martin pointed out correctly this flaw in reading amf3 integer data. I just want to add that there is a simple solution to read correctly the negative 29 bit integers by using a simple integer arithmetic: sign extending the 29 bit two's complement integer number to a 32 bit integer.
Zoli -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Schnabel Sent: Wednesday, May 03, 2006 2:58 PM To: Open Source Flash Mailing List Subject: Re: [osflash] reading AMF3 Integer Martin Schnabel wrote: >hi all, >i can finally read the amf3 Integer after a long night of work. >if anyone is interested visit http://mb0.org/blog/index.php?itemid=22 >and enjoy! >feel free to add it to the amf3 wiki page or what ever. > > just want to add: it uses all 29bit and not just 28bit as seen before! and it also reads negativ integers! the code is published in public domain so dont hesitate to add it to your amf3 projects best regards Martin Schnabel _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.2/329 - Release Date: 5/2/2006 _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
