Skip navigation
Alain Mazy 26 posts
Apr 7, 2010
Currently Being Moderated

Decode Javascript [object Object] from external interface.. (for retrieve original AS3 ByteArray)

Jul 4, 2012 3:27 AM

Tags: #as3 #javascript #bytearray #object #js #process #multithreading #externalinterface #concurency #worker

[For Adobe Programmers]

 

Hi,

 

I need to send a byteArray to another SWF via external interface.

 

 

Do not tell me about stringify, ç'est too slow! I need to send 20MB!

 

 

Do not mention either LocalConnection, I implemented, I have cut my stream in packet of 40K and this is again slow.

 

 

By cons, send a byteArray directly to external interface is very fast! in JS, we get an [object Object]. the size of this object is exactly that of my byteArray, it means that it has been received! He just changed format ..

 

 

If I make a simple Echo JS, in my AS3, I receive my byteArray well, with good size, but the format [object Object].

 

 

I assume that the external interface class encodes the byteArray .. What I would like to know is what format? How can I decode this object to retrieve my original byteArray?

 

 

I says that these audio data. Therefore, a series of float (32 bit). That's why the stringify malfunctioning.

 

It's verry good idea for making the process! (by OS relay) For CPU multicore using.

 

Thanks in advance and regards

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points