Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-09-2004, 05:57 PM   #1
sostuck
Registered User
 
Join Date: Jan 2004
Posts: 1
Default Flash Remoting w/ PHP ... multiple gateways possible?

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");
}
sostuck is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.