views:

102

answers:

1

Hi,

I have an action script Object that contains an array collection of other object, both objects are reflects of the Java Objects which are the database tables represented as beans, i am using blazeds spring hibernate... the regular configurations for flex RIA with java backend server language, all other objects work perfectly, but this time i needed to get this data from the client side and i do, but when i get into the Set represented as array collection in client side i get this error!!!!! both classes work for other situations, mapping is ok for these classes, i suspect that i need to convert the array collection on the server side, but maybe i did somthing wrong and the server side can figure out the array collection objects type and convert them!!! any one got into this ??

thanks in advance.

A: 

This could occur if the Remote Classes aren't included in the SWF and this would typically occur if they aren't referenced in your AS code. Working with the Objects in your code will result in the SWF including them in the compilation.

From the documentation: In the ActionScript class, you use the [RemoteClass(alias=" ")] metadata tag to create an ActionScript object that maps directly to the Java object. The ActionScript class to which data is converted must be used or referenced in the MXML file for it to be linked into the SWF file and available at run time. A good way to do this is by casting the result object, as the following example shows:

joseph.rawlings