Solved

transferring string data to flash from C# windows application

Posted on 2006-06-30
4
288 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
ID: 17022609
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
ID: 17022614
Here is the complete details with example.

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


Rgds
Aneesh
0
 
LVL 16

Expert Comment

by:sam85281
ID: 17025220
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
ID: 17030029
The way I usually do this is to create a C# web service as an interface for Flash.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to display a webpage in a flash 10 371
Google Chrome Blank White Screens 13 303
Firefox fullscreen video lags 4 173
Install adobe flash plugin for Firefox win 7 9 71
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

679 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