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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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