I am a CFC with my AS. The page loads fine with all data from the "Test Movie"
menu item but once loaded to the site it no data is displayed, only variable
definitions. The code I am running in the test movie is exactly the same as
on-line, meaning I am not using a localhost for anything, all testing is live.
The test movie calls to the CFC located on the server and displays info as
planned.
Any ideas?
#include "NetDebug.as"
#include "NetServices.as"
#include "DataGlue.as"
if (isGatewayOpen == null) {
// do this code only once
isGatewayOpen = true;
// Make the Gateway connection
NetServices.setDefaultGatewayUrl("
http://66.241.217.105/flashservices/gateway");
gatewayConnnection = NetServices.createGatewayConnection();
getcomms= gatewayConnnection.getService("com.dutchheritage.communities",
this);
getcomms.getcommunities();
}
function getcommunities_Result(community) {
mnumrec=community.getLength();
commcity=rtrim(community.items[0].communitycity);
maincommname=rtrim(community.items[0].communityname)+" - "+commcity;
if(community.items[0].minlotprice>0){
commdetpricefrom="Priced from
$"+decformat(community.items[0].minlotprice,0);
if(community.items[0].maxlotprice>0){
commdetpricefrom=commdetpricefrom+" to
$"+decformat(community.items[0].maxlotprice,0);
};
}else{
commdetpricefrom="";
}
commdetdesc=community.items[0].communitydesc;
...and on and on...