This would happen if you didn't have a dependency on an ActionScript
class in your application otherwise the mxmlc doesn't know to link it
into the SWF. At runtime if the Flash Player does not find a class with
a registered alias for the remote type, it just creates an anonymous
ActionScript Object to hold the properties.
 
There are lots of ways to create a compile time dependency...
 
import com.something.MyType;
//...
private static var dep:MyType;
 
etc.
 
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Dan
Sent: Wednesday, March 21, 2007 10:48 PM
To: [email protected]
Subject: [flexcoders] Bug? Remote Object to AS conversion.



Hi,

Does anyone ever have the same experience, when the Remote Object pass 
from Java side to AS side, the type of the DTO automatically being 
changed to ASObject type. While this does not happen to all the DTO, 
but only some of it. 

Can anyone share any idea of why?? Thanks a lot

Dan



 

Reply via email to