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 dijo
hace mucho tiempo | Publicación #2
Toby dijo
hace mucho tiempo | Publicación #3 Of 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 dijo
hace mucho tiempo | Publicación #4 the 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 dijo
hace mucho tiempo | Publicación #5 oh, and btw.. GetUserName works, and shows the correct output (although I've only tried for my account)
Mystery dijo
hace mucho tiempo | Publicación #6 | en respuesta a #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 dijo
hace mucho tiempo | Publicación #7 | en respuesta a #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 dijo
hace mucho tiempo | Publicación #8 | en respuesta a #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 dijo
hace mucho tiempo | Publicación #9 Hey 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.
Contestar al tema
Regístrate ahora para responder a éste tema
soybean dijo
hace mucho tiempo | Publicación #1