Forum ‹ ActionScript 3.0 ‹ DatabaseObject serialisation documentation
2 posts
• Page 1 of 1
DatabaseObject serialisation documentation
Hey fellas, great product you've got here.
Anyhoo i'm trying to ascertain whether or not the AS3 Object based DatabaseObject will serialise only Arrays or any iterable container? The AS3 documentation in general is really sparsely documented and when there isn't an example already there it's a real pain to work out what you're meant to do.
Thanks for any help!
edit: Another issue i've ran into is that you can't specify what data type to use and for some reason if you set something with a Number or UInt value it treats it as an Int on the other end instead of a double or a uint? This is all really confusing and feels rather unprofessional for what seems to be the lead client development platform.
Anyhoo i'm trying to ascertain whether or not the AS3 Object based DatabaseObject will serialise only Arrays or any iterable container? The AS3 documentation in general is really sparsely documented and when there isn't an example already there it's a real pain to work out what you're meant to do.
Thanks for any help!
edit: Another issue i've ran into is that you can't specify what data type to use and for some reason if you set something with a Number or UInt value it treats it as an Int on the other end instead of a double or a uint? This is all really confusing and feels rather unprofessional for what seems to be the lead client development platform.
- partybrian5000
- Posts: 3
- Joined: September 28th, 2011, 7:37 pm
Re: DatabaseObject serialisation documentation
BigDB will not serialize any flash specific objects, IE we do not serialize MovieClips, Classes etc.
We do however serialize, Simple Objects, Arrays, Strings, Numbers, Dates, Bools & ByteArrays
The lag of proper typing of properties is down to AS3 not supporting such. The AVM2 only support the numeric datatype Number for properties on simple a simple object. Thus there is no way for us to programmatically determine the type of a numeric property.
What we decide to do is simply to store numeric values optimally using whatever datatype fits this goal the best.
We do however serialize, Simple Objects, Arrays, Strings, Numbers, Dates, Bools & ByteArrays
The lag of proper typing of properties is down to AS3 not supporting such. The AVM2 only support the numeric datatype Number for properties on simple a simple object. Thus there is no way for us to programmatically determine the type of a numeric property.
What we decide to do is simply to store numeric values optimally using whatever datatype fits this goal the best.
Have more questions? Join us at #player.io on the freenode irc network. Making something cool with Player.IO? I would love to talk! My Skype handle is q-rious
-

Benjaminsen - .IO
- Posts: 808
- Joined: January 12th, 2010, 11:54 am
- Location: Denmark
2 posts
• Page 1 of 1