OK, I added an in-game trace panel to see what was going on with the API and found that on setUserData, it returned an Error note. So I guess, my new question is, what makes setUserData output error?
Thanks :)
is Get/SetUserData persistent?
soybean said
a long time ago | Post #2
Toby said
a long time ago | Post #3Of course you would get an error. Using the trace panel means you were running it locally, and the API needs to be running on Nonoba.com (so In other words, upload it).
soybean said
a long time ago | Post #4the trace panel I'm talking about is in-game.. inherit it from flash.text.TextField, and showed in-game (so I didn't call it by the regular trace(msg), but using a custom class TracePanel.trace(msg)). it's uploaded, and I tested it online, only it's hidden.
soybean said
a long time ago | Post #5oh, and btw.. GetUserName works, and shows the correct output (although I've only tried for my account)
Mystery said
a long time ago | Post #6 | in reply to #2Did you remember to convert your data to strings before passing it to setUserData? Remember that setUserData accepts data as strings (unlike SharedObject which can store various types), and that maybe passing non-string data causes the error.
soybean said
a long time ago | Post #7 | in reply to #6yep.. I've converted it using JSON.serialize.. erm... has anyone experienced the same with JSON?
Oh, and all of this is in AS3 btw... :/
Anyway, thanks for the replies, guys :)
Oh, and all of this is in AS3 btw... :/
Anyway, thanks for the replies, guys :)
Henrik said
a long time ago | Post #8 | in reply to #7There's a limit on the amount of data you can store, I think it's 1000 bytes or something. A serialized JSON object would probably be larger than that, which then causes the error.
Chris said
a long time ago | Post #9Hey Soy
Please send me some fancy pancy code that fails as a private message so I can try it out.
Please send me some fancy pancy code that fails as a private message so I can try it out.
Reply to thread
Sign up now to reply to threads
soybean said
a long time ago | Post #1