Solved

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

Posted on 2008-10-07
3
1,474 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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 identify a paragraph in the body of text? 2 56
Data organization issue 7 39
"The resource cannot be found" 1 24
Need help with another query 10 40
It seems that Microsoft thought of everything when it came to Lync: ease of use, multiple modalities for communication from a single interface, did I say ease of use? Unless you're used to chat servers that allowed you to predefine groups for differ…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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