I've declared class:
package model {
...
[RemoteClass(alias="com.vogster.adplatform.dashboard.Measure")]
public class Measure implements IExternalizable {
...
public function readExternal(input:IDataInput):void {
_values = input.readObject();
}
public function writeExternal(output:IDataOutput):void {
output.writeObject(_values);
}
}
}
and this is code that reads Measure elements from Java server (LCDS):
<mx:RemoteObject id="stats" destination="statsService">
<mx:method name="getStats" result="log(event)"/>
</mx:RemoteObject>
...
public function log(event:ResultEvent):void {
var result:ArrayCollection = ArrayCollection(event.result)
chart.dataProvider = Measure(data[0].genderMeasure).values;
...
}
Under debugger I see that data are read as Mesure object (Mesure's
alias was recognized) but readExternal() wasn't called. What could be
the reason?
AMF serialization sources isn't open so I can't understand what's
going wrong in ObjectReader. Is it possible to enable AMF
serialization logging/tracing somehow?
Could something like LCDS's endpoint configuration impact Object
serialization/deserialization behavior at client side?
Any help would be very much appreciated.
Den