Using RemoteObject calls, I'm able to return a java byte[]
from a server method and it comes out just fine on the client as a
flash.utils.ByteArray object. But when I have a byte[] as a member
of an enclosing class, I'm getting null on the client for the
ByteArray. Example:
Java classpackage org.xyz;
public class DimensionTest {
private byte[] _component = new byte[] {1,2,3,4,5,6};
}
AS classpackage org.xyz
{
import flash.utils.ByteArray;
[RemoteClass(alias="org.xyz.DimensionTest")]
public class DimensionTest
{
public var _component:ByteArray;
}
}
When my server method returns a new DimensionTest, I get an
AS DimensionTest class on the client with a null _component.
Any idea what I'm doing wrong?
Brian