itarato/Kitten
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
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);