Hi.

How do we judge CFC's method arguments of RemoteObject from ResultEvent??
Any ideas? Need a trick?

Here is code.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"; xmlns="*"
     creationComplete="initApp()">

<mx:Script>
  <![CDATA[
    import mx.rpc.events.ResultEvent;
    
    private function initApp():Void
    {
      roLCM.getList.addEventListener("result",this.loadList);
      roLCM.getList(1);
      roLCM.getList(2);
      roLCM.getList(3);
      roLCM.getList(4);
    }
    
    
    private function loadList(evt:ResultEvent):Void
    {
      // evt.result is only ArrayCollection
      // How do we judge that this ResultEvent is argument "1" event??
    }
    
    
  ]]>
</mx:Script>

<!-- ColdFusion CFC (via AMF) -->
<mx:RemoteObject id="roCFC" destination="CFCdes" showBusyCursor="true">
  <method name="getList" />
</mx:RemoteObject>

  <mx:Canvas width="100%" height="100%">
  </mx:Canvas>
</mx:Application>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to