473,237 Members | 1,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 software developers and data experts.

Flash and C# interaction

I am new to flash and want someone to guide me,
Is it possible to create a UI entirely in Flash and that will inetract
with C# components (backend) and these components will in return
interact with database etc.

If flash and C# interaction is possbile then, what are the prons and
cons of this interaction?

As using flash, one can create wonderful UI. But in return I also want
it to interact fully with C# components.

Thanks in adv,
-vivek

Jun 3 '06 #1
4 21800
Hello Vivek,

See samples there http://www.codeproject.com/info/sear...&ed=3+Jun+2006

V> I am new to flash and want someone to guide me,
V> Is it possible to create a UI entirely in Flash and that will
V> inetract
V> with C# components (backend) and these components will in return
V> interact with database etc.
V> If flash and C# interaction is possbile then, what are the prons and
V> cons of this interaction?
V>
V> As using flash, one can create wonderful UI. But in return I also
V> want it to interact fully with C# components.
V>
V> Thanks in adv,
V> -vivek
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 3 '06 #2
On 3 Jun 2006 02:28:36 -0700, vivek wrote:
I am new to flash and want someone to guide me,
Is it possible to create a UI entirely in Flash and that will inetract
with C# components (backend) and these components will in return
interact with database etc.

If flash and C# interaction is possbile then, what are the prons and
cons of this interaction?

As using flash, one can create wonderful UI. But in return I also want
it to interact fully with C# components.


That's possible but it depends on what kind of applications you want to do.
If you want to develop a desktop application with a Flash interface, you
can place the Flash ActiveX control on a Form. Then communicating between
flash and C# is easy (although very limited:
- Flash -> C#: in your action script, call the fscommand() method. This
will cause the ActiveX to raise the FsCommand event that can then be
handled by your C# program. fscommand takes 2 string as parameters so
you'll have to find a way to fit all the data you want to pass into 2
strings (for complex set of data, you'll probably want to pass XML string).
- C# -> Flash: you can use the SetVariable function of the ActiveX to set
an ActionScript variable value from C#. In Flash, place a watch on this
variable to be notified when its value has changed.

W've used this this technique to add a video-conferencing feature to our C#
application using Flash Media server and it works fine and it alowed us to
add video-conferencing in a matter of days instead of months. But i would
not recommend it to build a complete UI is Flash. Flash UI is just too
different from a normal Windows UI and this will surely cause loads of
confusion among your users. There are maybe a few very specific
applications that could benefit from having a Flash interface but don't
forget that there are third party C# UI component that can make a C#
application look great without having to use Flash. Plus, as we've seen
communication between Flash and C# is very limited so if you often have
loads of data to pass back and forth, this might become really messy.

If you're talking about web interfaces, then there are loads of examples on
the web that explain how to query an ASP or ASP .NET page from flash to
retrieve or pass data (typically, this is used to access a database).
Jun 3 '06 #3
Hi Mehdi,
thanks a lot for the information. Info is really helpful to keep prons
and cons of flash and .net interaction between two. yes, in our
application, there will be loads of data back and forth. and according
to you, it will basically become messy to control the data flow between
flash and c#. and more info you can give? it will be most probably a
desktop application. how complicated things are to use flash and .net?
like in our case, it might be like, flow of data will be coming and
backend(C#, .net) will try to populate these dynamic data on UI
(flash).

thanks in adv,
-vivek

Mehdi wrote:
On 3 Jun 2006 02:28:36 -0700, vivek wrote:
I am new to flash and want someone to guide me,
Is it possible to create a UI entirely in Flash and that will inetract
with C# components (backend) and these components will in return
interact with database etc.

If flash and C# interaction is possbile then, what are the prons and
cons of this interaction?

As using flash, one can create wonderful UI. But in return I also want
it to interact fully with C# components.


That's possible but it depends on what kind of applications you want to do.
If you want to develop a desktop application with a Flash interface, you
can place the Flash ActiveX control on a Form. Then communicating between
flash and C# is easy (although very limited:
- Flash -> C#: in your action script, call the fscommand() method. This
will cause the ActiveX to raise the FsCommand event that can then be
handled by your C# program. fscommand takes 2 string as parameters so
you'll have to find a way to fit all the data you want to pass into 2
strings (for complex set of data, you'll probably want to pass XML string).
- C# -> Flash: you can use the SetVariable function of the ActiveX to set
an ActionScript variable value from C#. In Flash, place a watch on this
variable to be notified when its value has changed.

W've used this this technique to add a video-conferencing feature to our C#
application using Flash Media server and it works fine and it alowed us to
add video-conferencing in a matter of days instead of months. But i would
not recommend it to build a complete UI is Flash. Flash UI is just too
different from a normal Windows UI and this will surely cause loads of
confusion among your users. There are maybe a few very specific
applications that could benefit from having a Flash interface but don't
forget that there are third party C# UI component that can make a C#
application look great without having to use Flash. Plus, as we've seen
communication between Flash and C# is very limited so if you often have
loads of data to pass back and forth, this might become really messy.

If you're talking about web interfaces, then there are loads of examples on
the web that explain how to query an ASP or ASP .NET page from flash to
retrieve or pass data (typically, this is used to access a database).


Jun 6 '06 #4
On 5 Jun 2006 21:44:51 -0700, vivek wrote:
thanks a lot for the information. Info is really helpful to keep prons
and cons of flash and .net interaction between two. yes, in our
application, there will be loads of data back and forth. and according
to you, it will basically become messy to control the data flow between
flash and c#. and more info you can give? it will be most probably a
desktop application. how complicated things are to use flash and .net?
like in our case, it might be like, flow of data will be coming and
backend(C#, .net) will try to populate these dynamic data on UI
(flash).


I'd suggest you to try it out and see if it could fit your goals. As i
said, interaction between Flash and C# is quite simple: FsCommand event to
send data from flash to C# and SetVariable for the opposite. The only
problem is that all you can pass around are strings so you'll need to
serialize the data into strings and deserialize it on the other end.
Whether it's gonna get messy or not really depends on what you're gonna do
and how you're going to do it so i can't really say.
Jun 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Dan | last post by:
Workshop {Flash <-> PHP <-> MYSQL} 1-4 December 2003 in Milan (Italy) 4 full immersion days in a Flash/php/MySQL project start-up. The workshop is a unique opportunity for partecipants to...
6
by: Sławek Mróz | last post by:
Hello! I'm a beginner in C# programming and I'm wondering if it's possible to put Macromedia Flash movies and C# applications working together. If yes and you know some good web-articles...
1
by: Bruce W.1 | last post by:
I want to put a live connection in a web page to periodically updated data. When the data changes, the server notifys the client and gives the new data. The client does not regularly refresh the...
6
by: Andy G | last post by:
I have a client that is really pushing me to start using Flash MX Professional to replace VS.NET. Main arguement is that it looks better and flows nicer than visual studio developed applcations...
4
by: VB Programmer | last post by:
I am housing a flash movie in an ASPX page. The flash form basically consists of FullName, EmailAddress, and Comments and a "Send Email" button. (I'm simplifying the issue.) How can I: (1) Get...
5
by: Luc2 | last post by:
I like to use Flash Player to record small audio sound bites from a web site. What server side support infrastructure do I need to make this work? The sound bites will be small enough so that they...
11
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I know I sound like a one-note Johnny on this but I'm still looking for a solution. I need to display characters coming in from a serial port or a socket. I also need to be able to type...
0
by: Omar Abid | last post by:
Reason of this project: The Microsoft.VisualBasic.Interaction class exposes many useful commands and methods that were available in Visual Basic like AppActivate, Beep, Callbyname... This...
4
by: Ronald Raygun | last post by:
I am building a website and I am displaying an animated image. The image was originally an animated gif. However, the graphic designer has told me that the best way forward (better animation +...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.