Solved

How can i get a flash variable using c# (ASP:NET)?

Posted on 2008-10-07
3
1,478 Views
Last Modified: 2013-11-08
Hi all,

I have an swf that display some info according with some parameters that i passed throught a cs class. For this in the aspx i have a literal control that I charge in the page_load event (see the code attached).

The idea is that after the swf load completely, it need to have a variable where the user can write what he wants (until here all works fine).

Now the deal is that i need to get in my class what the client wrote in the swf. How can i do this???

Please if someone  knows how can i do this it is very urgent.

Thx a lot

Regards,

Daniel Peralta
string player = "";
        player += "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"233\" height=\"46\" id=\"TrackPlayer\" align=\"middle\">";
        player += "    <param name=\"allowScriptAccess\" value=\"sameDomain\" />";
        player += "    <param name=\"allowFullScreen\" value=\"false\" />";
        player += "    <param name=\"movie\" value=\"" + this.Page.ResolveUrl("~/Players/Mp3Player.swf") + "\" />";
        player += "    <param name=\"quality\" value=\"high\" />";
        player += "    <param name=\"bgcolor\" value=\"#000000\" />";
        player += "    <param name=\"FlashVars\" value=\"songName=" + trackName + "&songURL=" + trackUrl + autoplayOption + "\" />";
        player += "    <embed src=\"" + this.Page.ResolveUrl("~/Players/Mp3Player.swf") + "\" FlashVars=\"songName=" + trackName + "&songURL=" + trackUrl + autoplayOption + "\" quality=\"high\" bgcolor=\"#000000\" width=\"233\" height=\"46\" name=\"TrackPlayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
        player += "</object>";
 
stringBuilder sb=new StringBuilder();
sb.Append(player);
myLiteral.text=sb.Text;

Open in new window

0
Comment
Question by:danielnp20
[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
3 Comments
 
LVL 9

Accepted Solution

by:
HeoQue earned 500 total points
ID: 22671024
you can use florine ( http://www.fluorinefx.com/ ) for messaging between flash and .NET

Thanks,
Amr
0
 

Author Comment

by:danielnp20
ID: 22671069
thx Amr i was reading WebORB but this is more simple...thx again
0
 
LVL 9

Expert Comment

by:HeoQue
ID: 22671352
you're welcome . florine is open source and we are more likely to recommend it.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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