Solved

transferring string data to flash from C# windows application

Posted on 2006-06-30
4
260 Views
Last Modified: 2012-06-21
I am embedding flash swf file into a C# windows application.

I have successfully transfer data from flash -> C# using the fscommand
But right now I am having difficulties in getting data from C# -> flash

I have read some post in the internet that it has to be done by
C# -> write xml -> flash read xml

but that's not what I want. i want to have the flash swf to read directly the variables from C#.

Is there a way to do this? Can I have code snippets as well?
0
Comment
Question by:kecoak
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
Comment Utility
yes,

you can do it using SetVariable function of flash.ocx

here are more details on it
http://board.flashkit.com/board/archive/index.php/t-517794.html

Rgds
Aneesh
0
 
LVL 34

Expert Comment

by:Aneesh Chopra
Comment Utility
Here is the complete details with example.

http://www.flashfanatiker.de/blog/archives/000032.html


Rgds
Aneesh
0
 
LVL 16

Expert Comment

by:sam85281
Comment Utility
SetVariable is a javascript method that works just fine, but if you prefer keeping it serverside(like me) you can do it like this:

NOTE:  I can only show you in VB but the concept is exactly the same, just make whatever syntax changes you need.

In your html <object> tags add this param:

<param name='FlashVars' value='myVariable1=<%=myC#Variable1%>&myVariable2=<%=myC#Variable2%>' />

And inside the <embed ... tag add:

FlashVars='myVariable1=<%=myC#Variable1%>&myVariable2=<%=myC#Variable2%>'

-Sam
0
 
LVL 12

Expert Comment

by:Proactivation
Comment Utility
The way I usually do this is to create a C# web service as an interface for Flash.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

762 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

11 Experts available now in Live!

Get 1:1 Help Now