i have created a flash movie and written some actionscript to connect to amfphp to utilize the services modules views.get method.
i am at the point of actually calling the views.get method, and i cannot figure out how in the heck to format the call to the server. im connected, everything seems fine to me...but i get an error...
AMFPHP_RUNTIME_ERROR
Missing required arguments.
/path/to/site/sites/all/modules/amfphp/amfphp.module on line 106
I am getting a "missing required arguments" error. the call to the server looks like this:
drupal.call("views.get",new Responder(onViewGet,onError),sessionId,"someview",new Array("_view"));
i have a responder waiting... i am supplying the session id, the view name, and at the end am attempting to place the returned data into an array called _view...
anyone have any ideas? i cannot find any examples at all of using views.get from within a flash movie
Comments
it started working when i
it started working when i swapped the position of the session id and the call to the view...go figure.