>> I had that problem too. The issue is that send requires a Basic Object. > Yeah, I figured that. Just thought there might be a way a convert or > cast my object to a generic object.
I logged a bug for this (No. 203212). It's because HTTPService is using a for..in loop to read the set of params to post and this syntax only returns dynamic properties in AS3. As a work around... there are a few ways to convert a property into a generic object. One way is to ensure that a remote class alias has not been registered for the class and then to write it to a ByteArray.writeObject, rewind the ByteArray, and ByteArray.readObject to get it back again. Without an alias registered it should only record the public properties and variables on the class and return an anonymous Object on deserialization. Another method is to use mx.utils.ObjectUtil.getClassInfo().properties which will return an Array of the public properties/variables names (including both dynamic and sealed) from any instance, typed or otherwise. You could loop over this and copy them on to an anonymous Object yourself.