Link to home
Start Free TrialLog in
Avatar of danielnp20
danielnp20Flag for Colombia

asked on

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

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

ASKER CERTIFIED SOLUTION
Avatar of HeoQue
HeoQue

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of danielnp20

ASKER

thx Amr i was reading WebORB but this is more simple...thx again
Avatar of HeoQue
HeoQue

you're welcome . florine is open source and we are more likely to recommend it.