Thanks for the suggestion. I'll do a search. The call is to a remote
site and I'm getting an error

*** 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

which suggests that may be the problem? I would have to switch
connection to my own CF server by the look of it where I have control
of that file


--- In flexcoders@yahoogroups.com, Dave Carabetta <[EMAIL PROTECTED]> wrote:
> On 10/3/05, yaagcur <[EMAIL PROTECTED]> wrote:
> > 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
> >
> 
> Did you properly create your crossdomain.xml file on the ColdFusion
> server so that it will accept AMF calls? Search the archives for more
> info, as this one has been covered many times. Also, if you're using
> CFMX pre-7.01, then put a ? at the end of the gateway URL due to a
> gateway caching bug that was in previous versions, like so:
> 
> http://www.mysite.com/flashservices/gateway?
> 
> Regards,
> Dave.




------------------------ 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