Solved

transferring string data to flash from C# windows application

Posted on 2006-06-30
4
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 how to record live broadcast.

740 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