[EMAIL PROTECTED] Mon Apr 12 10:09:22 2004
Return-Path: <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
X-Apparently-To: [email protected]
Received: (qmail 84566 invoked from network); 12 Apr 2004 17:09:22 -0000
Received: from unknown (66.218.66.166)
  by m13.grp.scd.yahoo.com with QMQP; 12 Apr 2004 17:09:22 -0000
Received: from unknown (HELO shockwave.systems.pipex.net) (62.241.160.9)
  by mta5.grp.scd.yahoo.com with SMTP; 12 Apr 2004 17:09:21 -0000
Received: from computer (81-86-255-94.dsl.pipex.com [81.86.255.94])
  by shockwave.systems.pipex.net (Postfix) with SMTP id 802AE1C000E9
  for <[email protected]>; Mon, 12 Apr 2004 18:09:19 +0100 (BST)
Message-ID: <[EMAIL PROTECTED]>
To: <[email protected]>
References: <[EMAIL PROTECTED]>
Date: Mon, 12 Apr 2004 18:07:57 +0100
MIME-Version: 1.0
Content-Type: multipart/alternative;
  boundary="----=_NextPart_000_0020_01C420B9.15B02340"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-eGroups-Remote-IP: 62.241.160.9
From: "Andrew Stopford" <[EMAIL PROTECTED]>
Subject: Re: [flexcoders] Flash Remoting using Flex
X-Yahoo-Group-Post: member; u=181447161
X-Yahoo-Profile: andrewstopford

------=_NextPart_000_0020_01C420B9.15B02340
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Gerald,

CFC communication would be possible via Flash Remoting/AMF. Try adding your=
gateway to your flex-config.xml under <amf-gateway>.

HTH

Andrew
http://weblogs.asp.net/astopford
----- Original Message -----=20
From: Gerald Williams=20
To: [EMAIL PROTECTED]
Sent: onday, April 12, 2004 5:52 PM
Subject: [flexcoders] Flash Remoting using Flex






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.=20
Theoretically, it should be able to access CFC's too since they will be
compiled to Java classes.=20

Therefore, I have been trying to use Flex with Flash Remoting. This examp=
le
compiles ok. But when clicking the button nothing happens, no data is bei=
ng
transmitted. When deleting endpoint=3D"http://127.0.0.1/flashservices/gat=
eway"
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=20



- Gerald


<?xml version=3D"1.0" encoding=3D"utf-8"?>
<mx:Application xmlns:mx=3D"http://www.macromedia.com/2003/mxml"; width=3D=
"400"
height=3D"400">

<mx:RemoteObject id=3D"mySv" source=3D"rest.stock"
endpoint=3D"http://127.0.0.1/flashservices/gateway"; >

<mx:method name=3D"login">
<mx:arguments>
<password>{txtPass.text}</password>
<user>{txtUser.text}</user>
</mx:arguments>
</mx:method>
</mx:RemoteObject>
=20=20=20=20=20=20=20=20
<mx:Canvas width=3D"400" height=3D"400">
=20=20=20=20=20=20=20=20=20=20
<mx:TextInput widthFlex=3D"1" id=3D"txtUser" x=3D"25" y=3D"59" />
<mx:TextInput widthFlex=3D"1" id=3D"txtPass" x=3D"25" y=3D"104" />
<mx:TextInput widthFlex=3D"1" id=3D"txtResp" x=3D"25" y=3D"14" />
=20=20=20=20=20=20=20=20
<mx:Button
click=3D"mySv.login.send()" id=3D"login_but" label=3D"Login" x=3D"69" y=
=3D"160" />
</mx:Canvas>
</mx:Application>







---------------------------------------------------------------------------=
---
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
=20=20=20=20=20=20
b.. To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
=20=20=20=20=20=20
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service=
.=20


------=_NextPart_000_0020_01C420B9.15B02340
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Gerald,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CFC communication would be possible via Fl=
ash=20
Remoting/AMF. Try adding your gateway to your flex-config.xml under=20
&lt;amf-gateway&gt;.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>HTH</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Andrew</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://weblogs.asp.net/astopford";>http://weblogs.asp.net/astopford<=
/A></FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LE=
FT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>Fro=
m:</B>=20
<A [EMAIL PROTECTED] href=3D"mailto:[EMAIL PROTECTED]">Gerald Williams</A=
> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A [EMAIL PROTECTED]
ups.com=20
href=3D"mailto:[email protected]";>[email protected]</A>=
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> onday, April 12, 2004 5:52 P=
M</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [flexcoders] Flash Remoti=
ng=20
using Flex</DIV>
<DIV><BR></DIV><TT><BR><BR><BR><BR>Hi All<BR><BR>Is there another way of =
Flex=20
accessing a CFC apart from a Web Service?<BR>As far as I know the inbuilt=
AMF=20
gateway can only access Java classes. <BR>Theoretically, it should be abl=
e to=20
access CFC's too since they will be<BR>compiled to Java classes.=20
<BR><BR>Therefore, I have been trying to use Flex with Flash Remoting. Th=
is=20
example<BR>compiles ok. But when clicking the button nothing happens, no =
data=20
is being<BR>transmitted. When deleting endpoint=3D"<A=20
href=3D"http://127.0.0.1/flashservices/gateway";>http://127.0.0.1/flashser=
vices/gateway</A>"<BR>the=20
application at least attempts to connect when the button is clicked.=20
The<BR>inclusion of the endpoint seems to disable the submit=20
button.<BR><BR>Any ideas?<BR><BR><BR>Thanks <BR><BR><BR><BR>-=20
Gerald<BR><BR><BR>&lt;?xml version=3D"1.0"=20
encoding=3D"utf-8"?&gt;<BR>&lt;mx:Application xmlns:mx=3D"<A=20
href=3D"http://www.macromedia.com/2003/mxml";>http://www.macromedia.com/20=
03/mxml</A>"=20
width=3D"400"<BR>height=3D"400"&gt;<BR><BR>&lt;mx:RemoteObject id=3D"mySv=
"=20
source=3D"rest.stock"<BR>endpoint=3D"<A=20
href=3D"http://127.0.0.1/flashservices/gateway";>http://127.0.0.1/flashser=
vices/gateway</A>"=20
&gt;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;mx:method=20
name=3D"login"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&lt;mx:arguments&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;password&gt;{txtPass.text}&lt;/password&gt;<BR>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;user&gt;{txtUser.text}&lt;/user&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
&lt;/mx:arguments&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/mx:method&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/mx:RemoteObject&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mx:Canvas width=3D"400"=20
height=3D"400"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mx:TextInput widthFlex=3D"1" id=3D=
"txtUser"=20
x=3D"25" y=3D"59" /&gt;<BR>&nbsp; &lt;mx:TextInput widthFlex=3D"1" id=3D"=
txtPass"=20
x=3D"25" y=3D"104" /&gt;<BR>&nbsp; &lt;mx:TextInput widthFlex=3D"1" id=3D=
"txtResp"=20
x=3D"25" y=3D"14" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mx:Button<BR>click=3D"mySv.login.s=
end()"=20
id=3D"login_but" label=3D"Login" x=3D"69" y=3D"160"=20
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/mx:Canvas&gt;<BR>&lt;/mx:Application&gt;<BR><BR><BR><BR><BR><BR></TT=
></BODY></HTML>

------=_NextPart_000_0020_01C420B9.15B02340--

Reply via email to