BlazeDS - Object that deserialize to actionscript object can't be cast to his subclass (parent)
I am building flex application and using blazeDS to pass objects between java and actionscript. I have the following java classes (Property that extends BaseProperty) and their act开发者_如何学Cionscript representation.
When I pass the java Property object to the actionscript using blazeDS and trying to cast it as action scipt BaseProperty object I get null.
Why??
It's important to mention that if I cast it as Property everything is fine.
Thank you very much.
As you haven't provided any code you're forcing us to perform psychic debugging - however my guess would be that you haven't registered the base class using:
registerClassAlias("BaseProperty", BaseProperty);
精彩评论