This will most likely fail, for 2 reasons:

1. In order to deserialze a object of a special type, you need to call
'registerClassAlias'
2. BitmapData has a constructor with required arguments

If you wanted to serialize a BitmapData instance into AMF you would need to
extend the class and set default values for the constructor.


Greetz Erik

>
> Hi,
>
>  you can use this method:
>
>  public static function clone(value:ByteArray):ByteArray {
>              var myBA:ByteArray = new ByteArray();
>              myBA.writeObject(value);
>              myBA.position = 0;
>
>              return myBA.readObject();
>          }
>
>  kind regards,
>
>  Frederico Garcia

Reply via email to