| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Sep 2003
Posts: 2
|
my flash remoting file work perfectly locally, but not when i upload the files to my server. what could cause this?
the movie is a simple textbox that pulls data from a SQL db, and scrools it across the screen. if it helps the a.s. looks like this: #include "NetServices.as" if (inited == null) { // do this code only once inited = true; // set the default gateway URL (this is used only in authoring) NetServices.setDefaultGatewayUrl("http://www.irsd.net/flashservices/gateway"); // connect to the gateway gateway_conn = NetServices.createGatewayConnection(); // get a reference to a service newsService = gateway_conn.getService("http://www.irsd.net/components/news.cfc?wsdl", this); newsService.getAnnouncements(); announcement_mc._x = 749; } function getAnnouncements_Result (result) { var len = result.getLength(); if(len < 1) { announcement_mc.announce_txt.text = "Watch this scroll for important IRSD news..."; } var obj = result.getItemAt(0).Title + " . . ."; for(var i = 1; i < len; i++) { obj = obj + " " + result.getItemAt(i).Title + " . . ."; } with (announcement_mc.announce_txt) { autoSize = "left"; text = obj; } } if ((announcement_mc._x > 0) || (announcement_mc.announce_txt.maxhscroll == 0)){ announcement_mc._x -= 1; } if ((announcement_mc.announce_txt.hscroll == announcement_mc.announce_txt.maxhscroll) && (announcement_mc.announce_txt.maxhscroll != 0)) { announcement_mc._x -= 1; } if ((announcement_mc._x == 0) && (announcement_mc.announce_txt.maxhscroll != 0)) { announcement_mc.announce_txt.hscroll += 1; } if (announcement_mc._x < (announcement_mc.announce_txt._width * -1)) { announcement_mc._x = 749; announcement_mc.announce_txt.hscroll = 0; } |
|
|
|
|
|
#2 |
|
Master of Nothing
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
|
Is this with Flash MX or MX 2004?
With MX is it possible that the cfc is not located in the same domain as the swf calling it? In MX it must be. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Sep 2003
Posts: 2
|
i fixed it, thanks., check it out working at www.irsd.net if your bored.
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Oct 2003
Posts: 3
|
How did you fix the problem? I'm having the same issue.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|