We were in the process of updating an older application to work with AMFPHP and cake1.2. We were getting some fairly serious errors on the AMFPHP connection.
We found that one part of the fix was to comment out line 177 in cake_gateway.php and add in a require_once of your app_controller.php file. (This assumes you have an application directory-level app_controller.php file.)
//loadController(null);
require_once('app_controller.php');
We were unable to get App::import(), the new method of loading items in cakePHP 1.2, to work in a similar manner as the loadController() method.

Maybe you could try the one in CakeSWXPHP:
http://blog.aboutme.be/cakeswxphp
— kiang · Feb 11, 06:02 PM · #
Were you ever able to find a full solution for this?
I am facing the same problem — I need to upgrade CakeAMFPHP to work in Cake 1.2. I’ve done the above (set up the importing/require for cake_gateway.php) but our flash components are still all timing out.
— Ryan · Jul 8, 01:43 PM · #
Check this out for a complete guide to migrate CakeAMFPHP 0.6.0 to cake 1.2:
http://bakery.cakephp.org/articles/view/using-cakeamfphp-0-6-w-cake-1-2
— Flo · Aug 14, 02:30 AM · #