Flash和C#如何通信?

时间:2010-09-09 22:34:11

标签: c#-3.0 flash-cs3

我需要一些帮助来制作嵌入flash .swf文件的C#应用​​程序 我想要的是向它提供一些数据。

html中的

就像这样

<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 name="FlashVars" value=
      "sid=5005405F&amp;data2=222&amp;data3=443&amp;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&amp;data2=222&amp;data3=443&amp;my_id=dunno&amp;data4=dinos&amp;cs_version=0">

我想要知道如何在C#中提供该数据

直到现在我只能在我的应用程序启动时加载.swf文件

playerax.LoadMovie(0, Application.StartupPath + "\\home.swf");
playerax.Play();

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

axShockwaveFlash1.FlashVars =“auto_play = true&amp; channel = adventuretimed&amp; start_volume = 25”;