Hey Drupal,
I had the problem of using api keys with connecting flash to drupal. Hopefully this is an easy fix, but there may be more issues than beyond the surface.
If you go to:
http://pilarcitosconstruction.com/node/6
This will display a form box with node 5 information in there. It will even recognize the user's log in status. when you go to log in and log out it replies with the response of invalid api key.
USERNAME: test
PASSWORD: test123
When I was testing in flash the session id changes between logging in and logging out.
I have attached the "main.as" and the "drupalservice.as". if you need anything else please let me know.
"MAIN.AS"
// Declare our variables
var baseURL:String = "http://pilarcitosconstruction.com";
var gateway:String = baseURL + "/services/amfphp";
var nodeId:Number = 5;
var apiKey:String = "70b7584d6a8f7c284bf5c47fb61fdc5b";
// The current user.
var user:Object = null;
var currentNode:Object = null;
// Instantiate our tabs.
var i:Number = tabs.numChildren;
while( i-- ) {
var tab:MovieClip = (tabs.getChildAt(i) as MovieClip);
tab.gotoAndStop("normal");
tab.addEventListener( MouseEvent.MOUSE_OVER, onTabHover );
tab.addEventListener( MouseEvent.MOUSE_OUT, onTabNormal );
tab.addEventListener( MouseEvent.MOUSE_DOWN, onTabNormal );
tab.addEventListener( MouseEvent.MOUSE_UP, onTabSelect );