README

May 19, 2011 ยท View on GitHub

Kitten - Drupal Communication Library

Download the compiled library: http://dl.dropbox.com/u/2629592/KittenFlexLib.swc

// Creation var c:Connection = new Connection('http://example.org/', 'amfphp/gateway');

// Authentication c.isSessionAuthentication = true; c.isSessionAuthentication = false;

c.isAPIKeyAuthentication = true; c.isAPIKeyAuthentication = false; c.setAPIKey(API_KEY, API_DOMAIN);

// Attach events c.addEventListener(ConnectionEvent.CONNECTION_IS_READY, connectionIsReadyCallback); c.addEventListener(ConnectionEvent.CONNECTION_IS_FAILED, connectionHasFailedCallback);

// Connect c.connect();

// Call a remote method c.call('method.function', callbackForResult, param1, param2);