[EMAIL PROTECTED] Mon Apr 12 09:49:44 2004 Return-Path: <[EMAIL PROTECTED]> X-Sender: [EMAIL PROTECTED] X-Apparently-To: [email protected] Received: (qmail 4739 invoked from network); 12 Apr 2004 16:49:43 -0000 Received: from unknown (66.218.66.217) by m24.grp.scd.yahoo.com with QMQP; 12 Apr 2004 16:49:43 -0000 Received: from unknown (HELO shockwave.systems.pipex.net) (62.241.160.9) by mta2.grp.scd.yahoo.com with SMTP; 12 Apr 2004 16:49:43 -0000 Received: from lisa (81-86-168-25.dsl.pipex.com [81.86.168.25]) by shockwave.systems.pipex.net (Postfix) with ESMTP id 2E39F1C001E6 for <[email protected]>; Mon, 12 Apr 2004 17:49:08 +0100 (BST) To: <[email protected]> Date: Mon, 12 Apr 2004 17:52:38 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Thread-index: AcQdBAL2KMLo+nXfRm2LIi4ZtdMF1gBQO29wAAP9chAAlcgakA== Message-Id: <[EMAIL PROTECTED]> X-eGroups-Remote-IP: 62.241.160.9 From: "Gerald Williams" <[EMAIL PROTECTED]> Subject: Flash Remoting using Flex X-Yahoo-Group-Post: member; u=155411841 X-Yahoo-Profile: ctrlcap
Hi All Is there another way of Flex accessing a CFC apart from a Web Service? As far as I know the inbuilt AMF gateway can only access Java classes. Theoretically, it should be able to access CFC's too since they will be compiled to Java classes. Therefore, I have been trying to use Flex with Flash Remoting. This example compiles ok. But when clicking the button nothing happens, no data is being transmitted. When deleting endpoint="http://127.0.0.1/flashservices/gateway" the application at least attempts to connect when the button is clicked. The inclusion of the endpoint seems to disable the submit button. Any ideas? Thanks - Gerald <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" width="400" height="400"> <mx:RemoteObject id="mySv" source="rest.stock" endpoint="http://127.0.0.1/flashservices/gateway" > <mx:method name="login"> <mx:arguments> <password>{txtPass.text}</password> <user>{txtUser.text}</user> </mx:arguments> </mx:method> </mx:RemoteObject> <mx:Canvas width="400" height="400"> <mx:TextInput widthFlex="1" id="txtUser" x="25" y="59" /> <mx:TextInput widthFlex="1" id="txtPass" x="25" y="104" /> <mx:TextInput widthFlex="1" id="txtResp" x="25" y="14" /> <mx:Button click="mySv.login.send()" id="login_but" label="Login" x="69" y="160" /> </mx:Canvas> </mx:Application>

