|
BEAUTIFUL!
It would make sense, that they would reuse the .NET .dll
library (that we paid so dearly for) - as I would be super irritated if
that was no longer usable, and we had to purchase yet another software component
just to use a non-Macromedia product to pull in external
data.
Thanks for the code sample too - I greatly appreciate
it.
Mike From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Wednesday, May 18, 2005 4:16 PM To: [email protected] Subject: RE: [flexcoders] Can Flex make .NET Remoting Calls? Hi,
Yeah Flex works with Flash .Net Remoting gateway. If you
have .Net Remoting gateway installed with samples on your
machine(localhost), you can run the following example under flex server.
Following is the straight forward port of a flash application to flex code. You
can compare the code to see, how easier life is with Flex :). Yeah, this example
doesn't represent best-practice, as usual its quick and dirty example
:)
##DotNetRemotingTest.mxml##
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
creationComplete="getCountryList();">
<mx:RemoteObject id="remoteTagInfo"
source="flashremoting.samples.ado" endpoint="http://localhost/flashremoting/gateway.aspx">
<mx:method name="CustomerInfo" result="resultHandler(event.result)"/> </mx:RemoteObject>
<mx:Script>
<![CDATA[ function getCountryList() { remoteTagInfo.CustomerInfo(); } function resultHandler(result) { if(countryList_cb.selectedItem==undefined) { countryList_cb.dataProvider = result; } else { details_dg.dataProvider = result; } } ]]> </mx:Script> <mx:Panel
title="flashremoting.samples.ado sample" width="50%"
>
<mx:ComboBox id="countryList_cb" change="remoteTagInfo.CustomerInfo(String(event.target.selectedItem['Country']));" /> <mx:DataGrid id="details_dg" width="100%"></mx:DataGrid> </mx:Panel> </mx:Application>
Let me know, if you have any doubts understanding above.
You can find the .Net code in
<gateway_installation_folder>\flashremoting\samples\ado. On my machine it
is, C:\Inetpub\wwwroot\flashremoting\samples\ado
Hope that helps..
-abdul
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Thursday, May 19, 2005 1:44 AM To: [email protected] Subject: [flexcoders] Can Flex make .NET Remoting Calls? Hello
All,
I extensively use the Remoting Components for .NET in regards
to the Flash MX 2004 environment.
Provided everything is in place, and working properly for Flash, this
should theoretically work if I make calls to the same services using Flex
correct? Could you all clarify that for me?
Thanks,
Mike
Yahoo! Groups Links
|
- RE: [flexcoders] Can Flex make .NET Remoting Calls? Abdul Qabiz
- RE: [flexcoders] Can Flex make .NET Remoting Calls? Mike Anderson

