1 Reply Latest reply on Jan 18, 2010 8:26 AM by cheftimo

    Question about RemoteObject()

    cheftimo Level 2

      Re RemoteObject, the Flex 3 language reference states:

       

      Source property - Lets you specify a source value on the client; not supported for destinations that use the JavaAdapter. This allows you to provide more than one source that can be accessed from a single destination on the server.

       

      I can't figure out what this means exactly. I would like to be able to call methods from 2 or more different CFCs. For example, I now use one remoteObject like this, calling methods from a CFC called "Catalog.cfc":

       

      <mx:RemoteObject id="srvc"

      destination="ColdFusion"

      source="....CFCs.Catalog"

      showBusyCursor="true" >

      <mx:method name="getCatalog" result="productServiceResultHandler(event)">

      <mx:arguments>

      <theCatID>{currentCatID}</theCatID>

      </mx:arguments>

      /mx:method>

      <mx:method name="getCategoryList"result="categoryListHandler(event)"/>

      <mx:method name="getSubcategoryList" result="subcategoriesHandler(event)"/>

      </mx:RemoteObject>

       

      So, if I want to call methods on another CFC, can I do it from this service? If so, how?

       

      Or do I have to create another RemoteObject instance to use a second CFC?

       

       

      Carlos