Re: Mapping objects
"Luke DeWitt" <[email protected]> Wed, 5 Jul 2006 13:05:54 -0300
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Organization | PenguinFire Media |
| Message-ID | <00cb01c6a04c$e7456040$7a16a8c0@pflukedev> |
Hooha! It works! I am not sure whether it was removing the parameters from the constructors, removing the _ before variable names, or the fact that I moved the AS classes into a package of the same name, but it appears to be working! I couldn't get anything to work when ServiceCapture was running, and their site was down when I tried to access it, but it is working now!! Thank you both for your help... though I have a feeling I'll be back for more in the not so near future! Thanks, --LD ----- Original Message ----- From: "Martin Wood" <[email protected]> To: <[email protected]> Sent: Wednesday, July 05, 2006 10:27 AM Subject: Re: [Openamf-user] Mapping objects > hmm, definitely try using service capture and see what that says about the > object being sent to flash (i think you get a 30 day trial...i bought it > because > its an invaluable tool for remoting development) > > one other thing i noticed which you should be aware of is that the > constructor > of the actionscript class gets called after de-serialization so you have > to be > careful what you do in your constructors. > > read this post for more information : > > http://www.darronschall.com/weblog/archives/000186.cfm > > anyway...back to the point..if you are getting a null that means that > flash cant > do that cast, so i think that the object is being sent as the correct type > from > java. > > personally i would try these things (as well as using service capture) > > 1. Make both constructors parameter less > > 2. Remove the underscores from the properties > > 3. triple check the mapping configuration > > 4. Keep the Object.registerClass call as part of the initialization code > in the > Smacklet class > > class com.flashdb.domain.Smacklet > { > private var reg:Boolean = > Object.registerClass("com.flashdb.domain.Smacklet",com.flashdb.domain.Smacklet); > > // Rest of class code > } > > > if it doesnt work after that then i try a liberal dose of swearing. :) > > good luck. > > Martin > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Openamf-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openamf-user > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642