Forum ActionScript 3.0 DatabaseObject serialisation documentation

Problems and discussions relating to ActionScript 3.0 here.

DatabaseObject serialisation documentation

Postby partybrian5000 » October 18th, 2011, 12:21 am

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.
Posts: 3
Joined: September 28th, 2011, 7:37 pm

Re: DatabaseObject serialisation documentation

Postby Benjaminsen » October 21st, 2011, 10:56 am

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.
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Return to ActionScript 3.0