Radicate
Radicate

Reputation: 3054

Actionscript 3 Json?

Just going to say that I'm new to AS3, What I'm trying to do is to parse json in flash and use the contents,

I've googled a lot and realized that I can't do it without a library that's called 'as3corelib', I went for it and started trying to get it to work,

But I haven't made it to even import it and use it properly, All I want to know is how to import it, and how to use it to read json,

I tried to read the documentation, and readme files, but I'm still lost, I'd be grateful if you guys could help me here, Thanks!

Upvotes: 2

Views: 3295

Answers (2)

Jeff Ward
Jeff Ward

Reputation: 19166

In Flash Player 11 and Air 3, JSON became a native, built-in Object in ActionScript. No need for external libraries. See the docs or this help article.

Upvotes: 0

Engineer
Engineer

Reputation: 48813

as3corelib you can find from here. Download latest .zip and find lib/as3corelib.swc file. Then by using 'How to use SWC in Flash CS3' link, import as3corelib.swc to your project. About how to use json serializing/deserializing , look at JSON class in docs which is existed in downloaded .zip as well.

Upvotes: 2

Related Questions