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 03-14-2003, 03:33 PM   #1
jaybee
Senior Citizen
 
jaybee's Avatar
 
Join Date: Feb 2003
Location: underneath the arches
Posts: 443
Angry my remoting movie only works locally

hi, I followed the tutorial on the mm site re getting started with remoting, and built a helloWorld swf with a cf component at the back end........it works in test mode and when I publish it locally, but when I publish it on the web, no go........here is the as:

ActionScript Code:
#include "NetServices.as" #include "NetDebug.as" function Result() {     //receives data returned from the method     this.onResult = function(result)     {         result_txt.text += "\nData received from server: "+result;     }     this.onStatus = function(error)     {         trace("Error : " + error.description);     } } NetServices.setDefaultGatewayUrl("http://myhost.com/flashservices/gateway"); var gw = NetServices.createGatewayConnection(); var server = gw.getService("path.to.helloworld", new Result()); my_btn.onRelease = function() {     server.sayHello(); }

and when the version on the web loads the movie seems to have problems cos the button doesn't turn the cursor into a hand as it should........I thought it could be a problem with including the as files, but they seem to be in the right place....?
jaybee is offline   Reply With Quote
Old 03-14-2003, 03:53 PM   #2
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

When you publish to the web, is the swf doing the calling on the same machine as the Remoting server? If not that is your problem.
freddycodes is offline   Reply With Quote
Old 03-14-2003, 03:56 PM   #3
jaybee
Senior Citizen
 
jaybee's Avatar
 
Join Date: Feb 2003
Location: underneath the arches
Posts: 443
Default

yes it is
jaybee is offline   Reply With Quote
Old 03-15-2003, 04:29 PM   #4
jaybee
Senior Citizen
 
jaybee's Avatar
 
Join Date: Feb 2003
Location: underneath the arches
Posts: 443
Default

let me know if anybody thinks it would be useful to see the fla on this, or if you think it could be to do with the host....it's a free host, the only one I could find that do remoting....
jaybee is offline   Reply With Quote
Old 03-15-2003, 04:55 PM   #5
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

Nothing in life is free my friend
freddycodes is offline   Reply With Quote
Old 03-15-2003, 06:33 PM   #6
jaybee
Senior Citizen
 
jaybee's Avatar
 
Join Date: Feb 2003
Location: underneath the arches
Posts: 443
Default

you said a mouthful there, fred
jaybee is offline   Reply With Quote
Old 03-23-2003, 05:37 PM   #7
Emanweb
Registered User
 
Join Date: Mar 2003
Location: Miami/FL/USA
Posts: 19
Send a message via ICQ to Emanweb
Exclamation

If your website is under IIS you should take a look at the following article:
http://www.macromedia.com/support/fl...connection.htm

HTH

Emanuel
Emanweb is offline   Reply With Quote
Old 09-13-2005, 04:07 PM   #8
IntensityLevel
Registered User
 
Join Date: Sep 2005
Posts: 2
Unhappy web services only work locally

I'm having the same problem. If I double click the swf and view it in the local flash player, my web services work. If I attempt to go to a url where the swf is hosted (in the same domain/server as the web service even), the data never loads. I thought it might have been a problem with cross-domain-policy, so I made that file in the servers root with a * policy. This did not help. I'm not sure what else to try at this point.
IntensityLevel is offline   Reply With Quote
Old 09-13-2005, 11:28 PM   #9
IntensityLevel
Registered User
 
Join Date: Sep 2005
Posts: 2
Default Solved the version mismatch problem!

I have finally solved a problem I've seen posted on many forums including this one.
-- WebServiceFault: VersionMismatch --
Make sure that if you're using nusoap and apache compression that you go edit nusoap and comment out the lines that perform compression on the soap envelope. Whats happening is that it is being double compressed and the flash client is getting garbage (when viewed in IE). It works fine from the localhost since you're not passing the "compress me plz" header (which both Apache AND nusoap react to).
IntensityLevel is offline   Reply With Quote
Old 01-26-2006, 05:57 PM   #10
Lupos
Registered User
 
Join Date: Dec 2005
Posts: 8
Default

Emanweb... you are my hero... me and my boss/network admin have been banging our heads against the wall for nearly a week with this issue!

bless you sir! dont know why i coudlnt find this article when serachign macromedia site though... oh well... just thrilled to have foudn it... thanks again!
Lupos 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 05:40 PM.


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.