I don't have com.adobe.serialization.json in my install of Flash. So, I
just move the com folder from the as3corelib into my global classpath
and then I can use any of the Flex classes?
Muzak wrote:
It's AS3, so not just Flex specific.
There's an example here:
http://code.google.com/p/as3corelib/source/browse/trunk/examples/JSONExample/JSONExample.mxml
The sample uses MXML, but not for the json part, only for loading the
data (using HTTPService).
So basically this is you're after:
import com.adobe.serialization.json.JSON;
var arr:Array = JSON.decode(rawData) as Array;
Where "rawData" is the loaded JSON data.
regards,
Muzak
----- Original Message ----- From: "Andrew Sinning"
<[email protected]>
To: "Flash Coders" <[email protected]>
Sent: Tuesday, October 13, 2009 12:27 AM
Subject: [Flashcoders] totally lost figuring out AS3 JSON Class
I've been using JSON forever with AS2. It's a single as class in
org.JSON. I've downloaded the as3 "core library" from JSON.org.
It's 283 files, and there's no explanation for what to do. The main
JSON class is in adobe.serialization.json, which seems to suggest
that this is an adobe class. I think this is for Flex, not Flash.
I would be very grateful for any help.
Thanks!
-And
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders