Skip to content

Instantly share code, notes, and snippets.

@9re
Created October 5, 2011 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9re/1263525 to your computer and use it in GitHub Desktop.
Save 9re/1263525 to your computer and use it in GitHub Desktop.
as3corelib JSON conflicts with Native JSON class for FlashPlayer 11
# as3corelib JSON conflicts with Native JSON
# to use FlashPlayer 11 api, you have to
# download playerglobal.swc from
# http://www.adobe.com/support/flashplayer/downloads.html
mxmlc ConflictTest.as
<flex-config>
<swf-version>13</swf-version>
</flex-config>
package {
import flash.display.Sprite;
import com.adobe.serialization.json.JSON;
public class ConflictTest extends Sprite {
public function ConflictTest() {
JSON;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment