Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / October 2006



Tip: Looking for answers? Try searching our database.

How call .net dll functions in flash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Haris Ali - 17 Oct 2006 22:38 GMT
Can anybody help me how can I call function declare in asp.net file from flash
using flash remoting.
here is my c# file login.cs

using System;
using FlashGateway.IO;
using System.Data ;

namespace rflremoting
{
/// <summary>
/// Summary description for login.
/// </summary>
public class login
{
protected FlashGateway.Flash Flash;

public void echo(string s)
{
return s;

}
}
}

and here is my action script file

import mx.remoting.*;

if (inited == null)
{
inited = true;
NetServices.setDefaultGatewayUrl("http://localhost/rflremoting/gateway.aspx");
serviceConnection = NetServices.createGatewayConnection();

myservice = serviceConnection.getService("rflremoting.login", this);

}
//function executes when the user clicks the button

btn_test.clickHandler=function()
{
myservice.echo(_root.inputtxt.text);

}
function echo_result(result)
{
_root.outputtxt.text=result;
}
function echo_status(result)
{
_root.outputtxt.text=error.description;
}
Sankalan - 19 Oct 2006 22:36 GMT
You can go through this article:
http://aspalliance.com/942_Working_with_Flash_Remoting_Using_NET

This article will give you a detail idea about Flash remoting with .NET, and
also has some sample project.

Thanks

Sankalan
(www.mindfiresolutions.com)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.