A few comments - maybe some answers.
AS3_CallS("loadBytes", loader, byteArray);
The byteArray variable should be an AS3_Array here. I'm assuming by the variable name, that this is not the case. Create the parameters by using:
AS3_Val loadBytesParam = AS3_Array("AS3ValType", byteArray);
Then pass that reference to the AS3_CallS function:
AS3_CallS("loadBytes", loader, loadBytesParam);
Then don't forget to release the reference:
always get null in as3！
I'm pretty sure that loadBytes() is an asynchronous call, in which case, content hasn't been set when the return is made. This is why it would be null.
Thank you very much !
I will try again as you approach.
AS3_Val flash_utils_namespace = AS3_String("flash.utils");
AS3_Val ByteArray_class = AS3_NSGetS(flash_utils_namespace, "ByteArray");
AS3_Val byteArray = AS3_New(ByteArray_class, AS3_Array(""));
Europe, Middle East and Africa