What is the best way to pass JSON to and from a Flash movie?
Currently to communicate between javascript and Flash :
- I'm using 'flashvars' to pass data to the flash movie when it initially loads
- I'm using 'ExternalInterface' at runtime to transfer single values, such as booleans at runtime
I want to move to the next level and do this with JSON now.
Initially I just want the ability to send JSON to the flash movie on instantiation, but later i will need to send data back and forth.
I just want to do it right first time and avoid any compatibility or 'gotcha' issues if there are any. i dont even know if i can pass a whole object to Flash, or if i need to serialize it as a raw JSON string