inclindwayne
10-06-2003, 05:06 PM
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;
}
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;
}