| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2004
Posts: 1
|
Im currently developing a website that uses flash remoting with PHP and AMFPHP.
I create a gateway connection and include the appropriate NetServices.as, opens the gateway connection, etc. and I do all of this inside a nested movie clip called "accessoriesholder". It loads an image for each result returned and inserts them into a movie clip called "accessoriesscroll" that has some scroll scripting allowing to scroll up and down to see them all, this works fine. I have the same logic in other movie clips to do the same exact thing. The problem comes when I test the movie, if I go click the link that runs the "accessoriesholder" movie clip, it connects, sends back the results and populates the images. Then If I click a link that points to any of the other movie clips, it sends the request, but nothing populates, no results are returned. I tested the movie again this time pointing first to one of the other movie clips and it works, creates the images and everything, however if I then click the link to accessoriesholder or another movie clip, it sends the request with no results returned. I have it set up so that the gateway connects in each of the movie clips... is this wrong? I think for some reason once I open the gateway in one movie clip, then move to another movie clip and attempt to open the gateway, it's either getting confused or possibly caching the gatewayUrl the first time and then getting confused when i send a request from a different location in my flash file. Please help me! Below is the connection code located in each of the movie clips: #include "NetDebug.as" #include "NetServices.as" #include "DataGlue.as" var gatewayurl = "http://irate/magnumboots/flash/gateway.php"; // connect to the Flash Remoting service provider if (isGatewayOpen == null) { // do this code only once isGatewayOpen = true; // Make the Gateway connection NetServices.setDefaultGatewayUrl(gatewayurl); gatewayConnnection = NetServices.createGatewayConnection(); testProducts= gatewayConnnection.getService("TestProducts"); trace("Connected"); } |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|