kennylerma / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

corelib's json is incompatible with AIR 3 SDK #361

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
import com.adobe.serialization.json.JSON; causes "com.adobe.serialization:json 
could not be found." error on Flash Builder 4.5.1 and AIR3 SDK 

I'm using Mac Os X 10.6.8

Compiling with Flex SDK 2.6 fixes the problem. 

Original issue reported on code.google.com by gokhansi...@gmail.com on 28 Sep 2011 at 4:23

GoogleCodeExporter commented 9 years ago
I'm getting the same issue when I overlay AIR 3.0 for Flash Professional CS5.5.

I believe JSON handling is now built into the AIR 3.0 Library.

Anyone know when the Facebook API will be available for AIR 3.0?

Original comment by sirpedr...@gmail.com on 26 Oct 2011 at 1:17

GoogleCodeExporter commented 9 years ago
I had this same problem....I went into the code and:

1- removed all the import com.adobe.serialization.json.JSON  lines (in 4 files 
I believe)
2- changed each JSON.decode to JSON.parse
3- changed each JSON.encode to JSON.stringify
4- changed JSONParserror to Error (yes, this is a bad hack, but i'm testing, 
not building an actual app)

code compiled and I was good to go.
This will work as a band-aid until they update the codebase.

Original comment by str...@gmail.com on 8 Nov 2011 at 6:42