I suspect the problem is that the first flash is creating the connection so
ommitted. In order to prove this I would comment out the lines
"Dechirico0" <webforumsuser@macromedia.com> wrote in message
news:c9tjd7$en2$1@forums.macromedia.com...
> I have created 3 flash files: main.swf, one.swf, and two.swf. Both one and
two
> connect to different cfc's using flash remoting. When accessing the swf's
> directly they both work fine. Main.swf is the container and I load one.swf
and
> two.swf as separate pages into main.swf using the loader component. This
is
> where the problem arises. The child swf's load fine, but only the first
swf
> accessed connects with flash remoting, the other (accessed 2nd) does not.
I am
> using Flash MX 2004 Professional. Both child swf's have the following
code:
>
> #include "NetDebug.as"
> #include "NetServices.as"
> #include "DataGlue.as"
> // Connect to the gateway and create a service object
> if (connected == null) {
> connected = true;
>
NetServices.setDefaultGatewayUrl("
http://127.0.0.1flashservices/gateway");
> var my_conn = NetServices.createGatewayConnection();
> my_conn.onStatus = errorHandler;
> var myService = my_conn.getService("cfcName");
> myService.cfcFunction();
> }
>
> Do I need to move this code to the parent? Not sure what's causing only
one
> Remoting connection to work.
>
> Any help would be greatly appreciated.
>
> Thx.
>
> Dechirico0
>