Actually (If you're talking about AMF communication using BlazeDS, Granite, 
Adobe LiveCycle,...)
Then the server serializes the name of the Class on the server side and then 
the data. 
In your model an the ActionScript side, you can add RemoteClass metadata to 
tell Flash/Flex that whenever an object with that name comes, that it should 
use this class for the ActionScript side.

Eventually you have to register the model class with:
flash.net.registerClassAlias({server-side classname}, {ActionScript class});

But usually the Flex compiler will handle that automatically.

Chris

________________________________________
Von: mark goldin <markzolo...@gmail.com>
Gesendet: Montag, 27. April 2015 17:43
An: users
Betreff: Cast results from server

I am getting data from a server as an ArrayCollection of a server class
objects.
How can I cast each element into a class that I am defining in ActionScript?

Thanks

Reply via email to