--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> How are you determining that there is no response? 

via the Network Monitor


>Instead of assigning
> the result directly to a variable, call a handler function.  Then >put a
> breakpoint in that function.

I tried something like this
<mx:Script>
  <![CDATA[
  var playerList:Object;
  function onGetData(event:Object):Void 
                        {
    playerList = event.result;
        }
        
        function TestEffectHandler(): Void {
            var counter:Number;
            var tempCounter:Number = 0;;
            for (counter=0; counter<5; counter++) {
                        tempCounter=counter+tempCounter;    
                        trace("Counter = " + counter);
                        }
            
}
  ]]>
  </mx:Script>

<mx:RemoteObject id="test"
endpoint="http://www.majorleaguecharts.com/flashservices/gateway";
source="mlc.mlbSQL"  showBusyCursor="true">
                        <mx:method name="GetData" result="onGetData(event)" />
                        <mx:method name="TestDeBugger" 
result="onGetData(event)" /> 
                </mx:RemoteObject>

Not sure if this would work but nothing got shown in the
flex\logs\flex.log file or in command window. I'm not sure my debugger
is working properly
However, in the flashlog.text file there was some activity including
*** Security Sandbox Violation ***
        at (Frame 1 of Layer Name Layer 1:2)
Connection to http://www.majorleaguecharts.com/flashservices/gateway
halted - not permitted from
http://localhost:8888/samples/explorer/data/myRemoteObjectDemorevised.mxml.swf?networkCapturePort=7777

As another responder mentioned the crossdomains.xml might that be the
problem? I may need to do remote to my own CF server
> 
> Also, enable remote object debugging in flex-config, see what that
> shows, in the flex server command window, or in the logs.




> Tracy
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of yaagcur
> Sent: Monday, October 03, 2005 9:56 AM
> To: [email protected]
> Subject: [flexcoders] Cannot get Remote objects connection
> 
> Did a quick search of archives without luck but bear with me if this
> has already been answered
> I am trying to get data returned from a CFC on a remote machine (the
> same problem applies on a local machine)
> 
> I have done this successfully with Flash thus
> 
> NetServices.setDefaultGatewayUrl("http://www.mysit
> e.com/flashservices/gateway");
> gatewayConnnection = NetServices.createGatewayConnection();
> mlb = gatewayConnnection.getService("mlc.mlbSQL", this);
> mlb.getTeams();
> 
> However, attempting to duplicate this in Flex, the remote call is made
> according to the  FlexBuilder but there is no response
> 
> The relevant part of the code I use is
> <mx:RemoteObject id="test" source="mlc.mlbSQL"
> endpoint="http://www.mysite.com/flashservices/gateway"; 
> result="teamList=event.result" showBusyCursor="true">
> </mx:RemoteObject>
> 
>  <mx:Button label="Get Teams" click="test.getTeams()"/>
> 
> I have place the mxml file in the samples directory and amended the 
> flex-config.xml file 
> <remote-objects><whitelist><unnamed><source>*</source>
> and for good measure
> <http-service-proxy><whitelist> <unnamed><url>http://*</url>
> 
> Can you plese point out what I'm doing incorrectly
> Thanks
> 
> 
> 
> 
> 
> 
> --
> 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




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/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