Hi Karima, Create an alias class of MyClass in actionscript using 'alias' keyword. This alias class will have to contain all the properties there in its java counter part.
[RemoteClass(alias="MyClass")] public class MyClassVO{ public var property1:type; . . . } Then you can bind your form properties with this class's properties and then pass that object tho the insert function. HTH, -Ravi On Aug 4, 8:34 pm, karima aissaoui <aiss...@gmail.com> wrote: > Hi everybody, > > iam developping a RIA with java and flex, i would like to insert data to my > database (postgresSQL) from a flex form, i use also hibernate and spring, so > the method that i use has in its parameter an object of my java class, the > problem that i have is that i do not know how can i extract data from my > form as an object, this is the kind of the problem that i have: > > my class: > > import mypackage.*; > public class Myclass{ > > public void insert(MyOtherClass m) > { > > // here i put the code of my method > > } > } > > in my form i have this : > > ..... > <mx:Script> > <![CDATA[ > > private function myFunction():void{ > sai.insert( /*here i don't know what to put*/ ) > > } > > ]]> > > </mx:Script> > > <mx:RemoteObject id="sai" destination="..."/> > > also in my remoting-config.xml all thing are goood. > > i wish u inderstood me and i am ready to answer any question. Thank you very > much --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---