0 Replies Latest reply on Sep 12, 2007 8:49 AM by Robert_Csiki

    RemoteObject - based component


      In my attempt to separate the presentation layer from the service layer in a Flex app (talking about client side only here), I would like to create a MXML component that uses <mx:RemoteObject> as root. Flex Builder would not compile it, the error

      Severity Description Resource In Folder Location Creation Time Id
      2 Parse error at '<mx:RemoteObject>'. AuthenticationService.mxml ImageViewer/services line 4 September 12, 2007 11:42:51 AM 58

      Here's my file structure

      <mx:RemoteObject xmlns:mx=" http://www.adobe.com/2006/mxml"
      showBusyCursor="true" >

      [the method definitions go here]

      [AS code goes here: event handlers, bindable public vars etc etc]



      - why the compile error, everything looks ok syntactically
      - is this the good approach of tackling this?
      - if not and will use an AS file instead (that is, not a MXML) to encapsulate this service, how can I attach distinct result and fault event handlers to each of the service methods?

      Thank you in advance.