Ok I know this is a little outside now of Zend, but maybe someone can help:
Here's my test fla: var gateway:String = "http://domain.com/problems"; var connection:NetConnection; var responder:Responder; responder = new Responder(onResult, onFault); connection = new NetConnection; connection.connect(gateway); connection.call("ProblemsController.test", responder); function onResult(result:Object):void { trace('test'); trace(String(result)); } function onFault(fault:Object):void { test('test2'); trace(String(fault.description)); } When I compile I don't get any errors and I don't get the BadVersion often associated with php errors. Also I don't see any of the trace(test*) showing up. Any thoughts? MS On Wed, Apr 7, 2010 at 12:58 PM, holografix . <[email protected]> wrote: > Hi > Flsh will understand. > > Cheers > holo > > 2010/4/7 Mark Steudel <[email protected]> >> >> I'm playing with the ZMF component and I have the following controller: >> >> <?php >> >> class ProblemsController extends Zend_Controller_Action >> { >> >> public function init() >> { >> /* Initialize action controller here */ >> } >> >> public function indexAction() >> { >> $server = new Zend_Amf_Server(); >> $server->setClass('ProblemsController'); >> $response = $server->handle(); >> echo $response; >> } >> >> public function test() >> { >> return array( 1, 2, 3, 4, 5); >> } >> } >> >> >> When I go to: >> >> domain.com/problems >> >> I get prompted to download problems (see link below): >> http://i44.tinypic.com/w9afif.jpg >> >> Do I need to adjust apache or something else, or will flash understand. >> >> In a 1.6 tutorial I watched the video showed that when you hit that >> page it should say something like Zend AMF Server Endpoint >> >> TIA, Mark > > -- ----------------------------------------- Mark Steudel P: 206.375.7244 [email protected] . : Work : . http://www.mindfulinteractive.com . : Play : . http://www.steudel.org/blog
