Trouble cloning an extended ByteArray
问题 I've extended the ByteArray class, like this: [RemoteClass(alias="MyByteArray")] public class MyByteArray extends ByteArray {} and cloned an instance of this class using ByteArray#readObject()/writeObject(). However, for some reason, the cloned object is an instance of ByteArray rather than MyByteArray. This is illustrated in the following example: registerClassAlias("MyByteArray", MyByteArray); var b1:MyByteArray = new MyByteArray(); var tmp:ByteArray = new ByteArray(); tmp.writeObject(b1);