I’m working on a js-only app. I’m trying to create a BinaryData object from an 
ArrayBuffer. The class has conditional compiling and takes either a ByteArray 
in SWF or an ArrayBuffer in JS.

When I try to pass an ArrayBuffer to the constructor in my js app, I get the 
following error:
Implicit coercion of a value of type ArrayBuffer to an unrelated type ByteArray.

This is the only “javascript” problem I’m getting in my app. All other JS-only 
APIs are not causing errors. Any clues why this is not working?

I can change BinaryData to accept a type of “Object”, but I’d like to 
understand why it’s not working as it currently stands.

Harbs

Reply via email to