Question

I have an ActionScript function exposed by ExternalInterface (ExternalInterface.addCallback).

Since the unique parameter of the function is a really big string (~1115468 chars), I'm experiencing some "blocking" on the flash component.

Looking to Chrome's JS profiler I found that this call is the guilty. It's possible to dispatch a web worker to do this job?

I found vkthread (http://www.eslinstructor.net/vkthread/) that promise you can call functions with contexts, but trying to call my heavy function I've received "TypeError: Converting circular structure to JSON".

Était-ce utile?

La solution

author of vkThread plugin already answered this question here:

https://github.com/vkiryukhin/vkthread/issues/1

Briefly: context object has a property, which refers to the object itself. That's why it cannot be stringified with JSON.stringify(...), which is used internally in this plugin.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top