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 10-06-2003, 05:06 PM   #1
inclindwayne
Registered User
 
Join Date: Sep 2003
Posts: 2
Default remoting works locally not on server

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;
}
inclindwayne is offline   Reply With Quote
Old 10-06-2003, 05:42 PM   #2
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

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.
freddycodes is offline   Reply With Quote
Old 10-07-2003, 02:29 PM   #3
inclindwayne
Registered User
 
Join Date: Sep 2003
Posts: 2
Default thanks

i fixed it, thanks., check it out working at www.irsd.net if your bored.
inclindwayne is offline   Reply With Quote
Old 10-08-2003, 03:29 AM   #4
skagen
Registered User
 
Join Date: Oct 2003
Posts: 3
Default

How did you fix the problem? I'm having the same issue.
skagen 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 11:36 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.