Integrating Flash 8 and C# Windows Application, what is the best way for data transfer?

Posted on 2006-05-17
Last Modified: 2012-06-27
I m creating a windows application using C# with Flash 8 embeded on it. (Please note this is windows application not web based). I would like to know what is the best way to communicate the variables:

 from Flash to C#
 from C# to Flash

The application that I will be developing will be a datagrid in Flash that is editable. Once the user edit the values in the datagrid, it will be submitted and passed into C# and C# will be the middleware that is communicating to the database. There might invalid values that must be rejected and that must be told to the user.

After some searching through google, I found out that there are several options available:

- fscommand
- xml through netservices
- some serializing and deserializing of strings
- and there might be other options that I don't know of

However some of the examples given on those websites are still not very clear.

My question:
1. what other alternatives for the data transfer?
2. what is the best solution for the data transfer from flash to C# ?
3. what is the best solution for the data transfer from C# to flash ?
4. will it be possible to transfer raw arrays from flash to C# directly?
5. is it possible to have an xml passed from C# into flash that can be directly populating the datagrid? (so that I dont have to parse the values in actionscript and put it inside the datagrid)
6. can I get an example for each of these data transfer?

thx in advance :)
Question by:kecoak
    LVL 39

    Accepted Solution

    hi there, just my 2c worth.
    i only have 1 experience with wrapping flash in c# and we used fscommand for the communication channels and that worked a charm.
    what we were doing was writing out xml as a string, and parsing that to the C# which wrote out the physical xml file.
    don't know if that helps :-)



    Author Comment

    Can I have some example of the coding both in C# and actiontionscript

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Title # Comments Views Activity
    Migrate From Flash Media Server 4.5 To IIS Smooth Streaming or VLC 6 1,105
    SWF won't scale? 4 510
    HTML 5 or Flash 7 469
    FLV versus SWF 11 254
    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now