Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the JSON class conflicts with the Native JSON class for FlashPlayer 11 #179

Open
9re opened this issue Oct 5, 2011 · 2 comments
Open

the JSON class conflicts with the Native JSON class for FlashPlayer 11 #179

9re opened this issue Oct 5, 2011 · 2 comments

Comments

@9re
Copy link

9re commented Oct 5, 2011

no one would use both ECMA5 JSON(JSON.stringify, JSON.parse) and as3corelib JSON except for benchmarking purposes.
but in some day the default flex-config with FlashBuilder would target

<swf-version>13</swf-version> 

and the globalplayer.swc will include flash player 11 apis.
you cannot compile old projects with as3corelib in these settings
because of the name conflicts of class names

here is the minimum test code which reproduces the problem:
https://gist.github.com/1263525

@brian428
Copy link

I think they'll need to either create a separate Flash 11 version of the swc, or rename/remove the JSON class in the next version (with an appropriate note about the change/removal).

@haysclark
Copy link

+1. The main issue that I'm running into is that the UnitTest don't run. I think the simple resolution is hardcoding the com.adobe.serialization.json.JSON to the tests so Flash is not confused by the built in JSON class.

This library is still helpful today for people that still need to support Flash 9 players.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants