python - Json communication between flash and javascript -


note: using django/python/javascript/flash

so been 2 days since i'm stuck @ error. did things told me , found couple of ways around nothing worked. these results.

javascript not receive normal string has json object so. in views.py

somestring = json.dumps("hello world") 

which renders in html

"hello world" 

and in javascript rendered

a240527176321_quote_hello  

now, since json object need convert in flash. when gets in flash receive this

function something(hellovar){ ..... ...... } 

it not come inside function. thoughts?

why communicate between flash , js via json? actionscript has powerfull build in externalinterface communicate javascript.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -