Palin_exn
07-07-2006, 07:38 PM
Hi there,
i'm currently trying to plug AS 3.0 with amfphp, can't remember the version, and since i've partly succeeded I am asking your help!
connection = new NetConnection();
connection.objectEncoding = 0;
my_responder = new Responder(success,fail);
// 0 = AMF0 (Flash 8-) 3 = AMF3 (Flash 9+) amfphp = AMF0
connection.connect("http://127.0.0.1:8080/GatewayPHP/gateway.php");
When I call not protected function(which do not need authentication), the call returns values. But, if I try to call protected function, it won't work... totally normal! But, when I try to setCrendential to get authenticated it doesn't want to work...
I've tried calling setCredentials as normal function, flash complain that the function doesn't exist. So I started looking at ohter solutions like NetConnection.addHeader, but I can't figure out how to use it to force the setCredential call to happen. And since all my attempts failed, I'm starting to feel I won't get throught it.
thanks
Palin
i'm currently trying to plug AS 3.0 with amfphp, can't remember the version, and since i've partly succeeded I am asking your help!
connection = new NetConnection();
connection.objectEncoding = 0;
my_responder = new Responder(success,fail);
// 0 = AMF0 (Flash 8-) 3 = AMF3 (Flash 9+) amfphp = AMF0
connection.connect("http://127.0.0.1:8080/GatewayPHP/gateway.php");
When I call not protected function(which do not need authentication), the call returns values. But, if I try to call protected function, it won't work... totally normal! But, when I try to setCrendential to get authenticated it doesn't want to work...
I've tried calling setCredentials as normal function, flash complain that the function doesn't exist. So I started looking at ohter solutions like NetConnection.addHeader, but I can't figure out how to use it to force the setCredential call to happen. And since all my attempts failed, I'm starting to feel I won't get throught it.
thanks
Palin