473,322 Members | 1,408 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,322 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 21806
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.