C# 未为SWF加载电影

C# 未为SWF加载电影,c#,flash,shockwave,C#,Flash,Shockwave,所以我使用的是VisualStudio2019 我从Doodletoo.com上得到一些代码试图嵌入SWF 它加载到100%,然后进入黑屏。当我右键单击时,它显示电影未加载。我已经添加了Flash变量&SWF的链接。该按钮仅启动SWF。不过我不明白。我只装了一次。当它确实加载时,它造成了极大的滞后 这是我的表单脚本 using System; using System.Collections.Generic; using System.ComponentModel; using System.D

所以我使用的是VisualStudio2019

我从Doodletoo.com上得到一些代码试图嵌入SWF

它加载到100%,然后进入黑屏。当我右键单击时,它显示电影未加载。我已经添加了Flash变量&SWF的链接。该按钮仅启动SWF。不过我不明白。我只装了一次。当它确实加载时,它造成了极大的滞后

这是我的表单脚本

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace NewtTEst
{
    public partial class Form1 : Form

    {
        public Form1()
        {
            InitializeComponent();
        }
        private void btnStop_Click(object sender, EventArgs e)

        {
            axShockwaveFlash1.Stop();
        }

        private void Button3_Click(object sender, EventArgs e)
        {
            axShockwaveFlash1.Movie = "http://doodletoo.com/flash/DoodleToo2.swf?v=21";
            axShockwaveFlash1.FlashVars = "configUrl=http%3A%2F%2Fdoodletoo%2Ecom%2F%2Fconfig%2Exml&roomID=4&useRefresh=false&isEmbed=false&v=21";
            axShockwaveFlash1.Play();
        }
    }
}
有人能告诉我为什么它不加载SWF吗?当我用另一个SWF链路替换当前SWF链路时。它工作正常,播放SWF。

正确的链接是:

未经测试,但您可以尝试使用

(1)将flashvars放在SWF的同一URL中

private void Button3_Click(object sender, EventArgs e)
{
    axShockwaveFlash1.Movie = "http://doodletoo.com/flash/DoodleToo2.swf?v=21&configUrl=http://doodletoo.com//config.xml&roomID=4&useRefresh=false&isEmbed=false&v=21";
    axShockwaveFlash1.Play();
}
(2)更改FlashVar的格式。测试格式A或格式B

private void Button3_Click(object sender, EventArgs e)
{
    axShockwaveFlash1.Movie = "http://doodletoo.com/flash/DoodleToo2.swf?v=21";
    axShockwaveFlash1.FlashVars = "configUrl=http://doodletoo.com//config.xml&roomID=4&useRefresh=false&isEmbed=false&v=21";
    axShockwaveFlash1.Play();
}
格式A:

configUrl=http://doodletoo.com//config.xml&roomID=4&useRefresh=false&isEmbed=false&v=21
格式B:

configUrl=http://doodletoo.com//config.xml;roomID=4;useRefresh=false;isEmbed=false;v=21

有没有办法将WMode=Opaque添加到该URL?我还有一个变量需要更改。变量的路径显示此
root | DT2.swf | scripts | com | wdf | doodletoo | ToolController
如何将该路径添加到此
Game.SetVariable(_root.restofpath,“99999”)
我问了一个新问题,寻求对上述评论的帮助。我不确定你是否能帮助我,但你似乎知道自己在做什么,所以我想我会问你。