473,749 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 21850
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
3180
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 increase their experience in interactions between visual creativity and dynamic applications. It's a study and research about interaction between visual creativity and dynamic applications, trought a real web project developement.
6
6499
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 giving explanations and examples - pls let me know the links. BR Slawek
1
4600
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 page. The client responds to server-side events only. The screen display changes without any user interaction. An application like this might be a chat, stock ticker, or data inventory. Sofar as I can tell nothing in the .NET framework can...
6
1915
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 (this client is a designer not a programmer). I believe that Flash is a 'Tool' not a 'Solution'. My 'Solution' is an ASP.NET application but I would like to use Flash as a 'Tool'. I am having very hard time seeing any documentation on the...
4
1927
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 the values of the 3 variables from the Flash MX form (using ASP.NET)? (2) Send an email which the user click's the button on the Flash form? I assume I'll have to send an email thru ASP.NET (which I know how to do in a normal ASPX page.)
5
8697
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 can be fully downloaded to client app (as opposed to using streaming). Will I need the Macromedia Media Server to support this? Ideally I don't want to use a server, since my server side development environment is ASP.NET/C# and I don't see...
11
7654
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 characters into the display myself - but that's not the main issue at this time. I've tried a scrolling multiline text box but once the original viewable area fills up and it starts scrolling the flashing of the entire area drives me nuts. The...
0
2147
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 tutorial shows how to work with some of them. Project details: 1- From VB 6.0 to VB .net 2.0 2- Useful interaction commands 3- Samples of interaction commands
4
1352
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 + smaller file size), would be to use a small .swf file. Currently, I am using the <img/tag in my HTML file, to have the image loaded and displayed in the page. I will need to change this line so that instead of the animated gif file, teh browser...
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8256
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6800
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.