--- C:\Users\jrowny\desktop\amfphp\amfphp.module 2009-02-14 15:26:21.000000000 -0500 +++ C:\www\drupalcon\sites\all\modules\amfphp\amfphp.module 2009-03-05 01:29:42.901091800 -0500 @@ -73,7 +73,8 @@ function amfphp_method_call($method_name // convert all uid to userid $result = amfphp_fix_uid($result); - + $result = amfphp_set_explicitType($result); + return $result; } @@ -94,6 +95,20 @@ function amfphp_fix_uid($data, $directio return $data; } +//sets explicit type in case you want to type your variables in AS3 +function amfphp_set_explicitType($data){ + if(is_object($data) && isset($data->type)){ + $data->_explicitType=$data->type; //testomg + }else if(is_array($data)){ + foreach($data as $item){ + if(is_object($item) && isset($data->type)){ + $item->_explicitType=$item->type; //testomg + } + } + } + return $data; +} + /* * Implementation of hook_server_error() */