Hi everyone! i'm a newbie.
i'm running flash cs6 and attempting to use JSON calls that are in flash player 11.2. When i test movie, everything is fine. When i publish to swf, i have error:
ReferenceError: Error #1065: Variable JSON is not defined.
please tell me how to fix it. thanks.
Json is now supported natively in the new version.
I used to use the adobe json serialization class: "import com.adobe.serialization.json.JSON" which when decoding used the function "JSON.decode()".
The native JSON class has changed the function to 'JSON.parse()". So try removing the old json class import and changing all the decode functions to parse.
Are you testing that your browser has the most up to date flash version?
If you are loading this movie as a child of another movie make sure the parent is compiled as the same version of flash as the child.
Hmmm, otherwise not sure.