Hello ... I'd appreciate any help on this issue.....Carlos
1. I can get amfphp1.9 working local but not on my remote webserver. (I'm
using the HelloWorld sample)
2. have no problems with amfphp 1.2 on remote server
3. I'm using flash 8 with php 5.2.
4. copied over amfphp directory less the fla files in the samples directory.
4. Maybe there is something in the gateway.php that needs modification.
(???)
*** Below is located in www\amfphp\services directory.
<?php
class HelloWorld
{
function sayHello()
{
return "Hello World!";
}
}
?>
***** Below is my fla file located in root directory
var gatewayUrl:String = "http://carlosinla.com/amfphp/gateway.php";
import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();
var oPosts:Object;
var _service:Service = new Service(gatewayUrl, null, "HelloWorld", null,
null);
var pc:PendingCall = _service.sayHello();
pc.responder = new RelayResponder(this, "handleResult", "handleError");
function handleResult(re:ResultEvent) {
oPosts = re.result;
trace (oPosts.length);
test_txt.text=oPosts.length; //initial text changes to '12' locally - but
no change on web server.
}
***** Below is cross-domain file in root directory
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.carlosinla.com" />
<allow-access-from domain="carlosinla.com" />
</cross-domain-policy>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders