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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Abdul
QabizSent: Wednesday, May 18, 2005 4:16 PMTo:
flexcoders@yahoogroups.comSubject: 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 sampleson 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: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
AndersonSent: Thursday, May 19, 2005 1:44 AMTo:
flexcoders@yahoogroups.comSubject: [flexcoders] Can Flex make .NET
Remoting Calls?
Hello
All,
Iextensively usethe 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
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.