is your endpoint set correctly? :
var _service:Service = new Service(gatewayUrl, null, 'Highscores',
null , null);
if Highscores.php is in a highscores or gamesfolder of some sort in
the services folder in amfphp. you need to reference it like:
var _service:Service = new Service(gatewayUrl, null,
'games.Highscores', null , null);
try that..
smith
On Mar 29, 2006, at 3:17 PM, Count Schemula wrote:
I have an amfphp install on both?
====
When I play it locally, seems like it connects remotely ok:
ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php"
DebugId: "0"
EventType: "Connect"
MovieUrl: "file:///C|/Documents and Settings/Dual Core/My
Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf"
Protocol: "http"
Source: "Client"
Time: 1143673926056
Date (object #1)
....."Wed Mar 29 18:12:06 GMT-0500 2006"
ConnectString: "http://www.thelargeglass.com/amfphp/gateway.php?
PHPSESSID=5ea2dbbd18e96edc6bb434e0b296f64f"
DebugId: "0"
EventType: "Connect"
MovieUrl: "file:///C|/Documents and Settings/Dual Core/My
Documents/thelargeglass/webDev/dualcore/highscores/highscores.swf"
Protocol: "http"
Source: "Client"
Time: 1143673926868
Date (object #1)
....."Wed Mar 29 18:12:06 GMT-0500 2006"
====
This tests positive:
http://www.thelargeglass.com/amfphp/gateway.php
====
In my flash file:
var gatewayUrl:String = "http://www.thelargeglass.com/amfphp/
gateway.php";
NetDebug.initialize();
var _service:Service = new Service(gatewayUrl, null, 'Highscores',
null , null);
====
The amfphp service for Highscores:
For the *** values, I have the correct online db server information
<?
class Highscores {
var $dbhost = '****'; // your information here
var $dbname = '****';
var $dbuser = '****';
var $dbpass = '****';
function Highscores() {
$this->methodTable = array(
"getScores" => array(
"description" => "Returns rs of all scores from
highscores table",
"access" => "remote",
"returntype" => "recordSet"
),
"insertScore" => array(
"description" => "Insert score into highscores table,
return id",
"access" => "remote"
),
"deleteScore" => array(
"description" => "Deletes score for specified id from
highscores",
"access" => "remote"
)
);
// Initialize db connection
$this->conn = mysql_pconnect($this->dbhost, $this->dbuser,
$this->dbpass);
mysql_select_db ($this->dbname);
}
function getScores() {
return mysql_query("SELECT * FROM highscores");
}
function insertScore($scoreData) {
mysql_query("INSERT INTO highscores VALUES
(NULL,'".addslashes($scoreData['nickname'])."','".$scoreData
['dateposted']."','".$scoreData['score']."')");
return mysql_insert_id();
}
function deleteScore($id) {
return mysql_query("DELETE FROM highscores WHERE id=".$id);
}
}
?>
====
I've switched folders, browsers etc try to see if it's a cache
problem.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com