I am using Flex's Alchemy library to generate SWC's out of C files. I have a byte array (unsigned char buffer[size]
) in the c-layer that I'd like to return to the ActionScript layer as a ByteArray
. Do I have to iterate through the array and explicitly call AS3_Set
on each element or is there a way to just return the entire C array at once?
views:
402answers:
2
A:
This can be accomplished by using the AS3_ByteArray_writeBytes function of the Alchemy API.
Raul Agrait
2009-10-28 17:58:12