i need some help in making a C# application that embed's a flash .swf file and what i want is to feed some data to it.
in html is like this
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=
"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="625" height="100%" id="flash" name="flash" align="">
<param name="movie" value="http://www.mysite.com/flash/home.swf">
<param name="loop" value="false">
<param name="allowScriptAccess" value="always">
<param name="allowNetworking" value="all">
<param name="menu" value="false">
<param name="quality" value="high">
<param name="devicefont" value="true">
<param name="bgcolor" value="#FFFFFF">
<param na开发者_如何学运维me="FlashVars" value=
"sid=5005405F&data2=222&data3=443&data4=custom">
<embed src="http://www.mysite.com/flash/home.swf" loop="false" menu=
"false" allowscriptaccess="always" allownetworking="all" quality="high"
devicefont="true" bgcolor="white" width="625" height="100%" name="flash"
id="flash" align="" swliveconnect="true" type=
"application/x-shockwave-flash" pluginspage=
"http://www.macromedia.com/go/getflashplayer" flashvars=
"sid=5005405F&data2=222&data3=443&my_id=dunno&data4=dinos&cs_version=0">
what i want is to know how can i feed that data in C#
till now i can only load the .swf file when my app start's up
playerax.LoadMovie(0, Application.StartupPath + "\\home.swf");
playerax.Play();
Take a look at this tutorial:
Flash tutorial - How to send data to ASP.NET and read the answer
axShockwaveFlash1.FlashVars = "auto_play=true&channel=adventuretimed&start_volume=25";
精彩评论