Is the Flash movie (within Macromedia Flash MX) not connecting?
• It is recommended that you include the NetServices.as class in the first frame of the movie, and the connection to the gateway in the same frame. If you have chosen not to put them in the first frame, then make sure they are defined before you use the connection in your movie. To check this do the following: • Select Window > Actions (or press F9). • From the pop-up menu, select “Actions for frame 1 of Layer Name Layer 1”. “Layer 1” will be the name of your layer. • Make sure that the code connecting your movie to Flash Remoting is in this frame, (or defined before using it). • Make sure to include the NetServices.as class file, again in the first frame: #include “NetServices.as” • The actual connection ActionScript should look like the following: #include “NetServices.as” #include “NetDebug.as” #include “DataGlue.as” if (inited != true) { inited = true; NetServices.setDefaultGatewayUrl (“http://localhost:8200/flashservices/gateway”); gatewayConnection = NetServices.createGatewayConn