Forum BigDB createObject and Actionscript

Discussion and help relating to the PlayerIO database solution, BigDB.

createObject and Actionscript

Postby RastaRalle » September 8th, 2010, 2:35 pm

hi,
sorry for this really stupid question and sorry for my bad english!
I have a question about the createObject-method. can I use this in Actionscript?
If it's possible could you give me a little example how to use it correctly? I already read the documentation, but I didn't find my mistakes...

greetings
Rasta
RastaRalle
 
Posts: 63
Joined: August 18th, 2010, 2:46 pm

Re: createObject and Actionscript

Postby Oliver » September 9th, 2010, 11:36 am

Hi Rasta,

Yes, you can use this method from ActionScript.

The documentation is here:
http://playerio.com/documentation/refer ... eateObject

Example:
Code: Select all
client.bigDB.createObject("SomeTableName","my-object-key",{data:"goes here"}, function(o:DatabaseObject) : void{
   ...
}, function(e:PlayerIOError) : void{

})


Best,
Oliver
public
createObject (table:String, key:String, data:Object, callback:Function = null, errorHandler:Function = null):void
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: createObject and Actionscript

Postby RastaRalle » September 9th, 2010, 12:36 pm

Hi, now it absolutly works.
My mistake was, that I wrote "BigDB" and not" bigDB"... I think that isn't described very good in the reference ;)
thanks for your help
Rasta
RastaRalle
 
Posts: 63
Joined: August 18th, 2010, 2:46 pm


Return to BigDB



cron