[support] Problem with Flash's connection
sebastian
inforazor at gmail.com
Wed Dec 9 20:04:10 UTC 2009
I'd also be interested to learn more about the solution, when you find
out. Thanks!
Gustavo Cabral wrote:
> Hello all,
> I've a problem with connection between my flash application and
> drupal. I've only received this error in flash's console:
>
> 106
> Unknown error type
> D:\UniServer\www\flash\sites\all\modules\services\servers\amfphp\amfphp.module
> AMFPHP_RUNTIME_ERROR
>
> I've enabled this modules:
> Services,
> Key Authentication,
> AMFPHP,
> Node Service and
> System Service.
>
> And my code is:
> var baseURL:String = "http://localhost/flash";
> var gateway:String = baseURL + "/services/amfphp";
> var sessionId:String = "";
>
> var drupal:NetConnection = new NetConnection();
>
> drupal.objectEncoding = ObjectEncoding.AMF3;
>
> drupal.connect(gateway);
>
> var responder:Responder = new Responder( onConnect, onError);
>
> drupal.call("system.connect", responder);
>
> function onConnect(result:Object)
> {
> sessionId = result.sessid;
> trace( "Estamos Conectados");
> trace ("Session ID: " + sessionId);
> }
>
> function onError(error:Object)
> {
> for each (var item in error){
> trace (item);
> }
> }
> As you can see, I'm trying to do a exercise of a book Flash with Drupal.
> Thanks for yours suggestions.
>
> Greetings.
>
> Gustavo.-
More information about the support
mailing list