我有,当一个用户点击一个按钮时,打开与嵌入在它的ActiveX flash对象新帧的简单C#程序。我用它来打开它的代码如下:Flash动画忽略给定尺寸
private void button1_Click(object sender, EventArgs e)
{
Form f = new Form();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
AxShockwaveFlashObjects.AxShockwaveFlash swf = new AxShockwaveFlashObjects.AxShockwaveFlash();
((System.ComponentModel.ISupportInitialize)(swf)).BeginInit();
f.SuspendLayout();
swf.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
swf.Enabled = true;
swf.Location = new System.Drawing.Point(1, -1);
swf.Name = "axShockwaveFlash1";
swf.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axShockwaveFlash1.OcxState")));
swf.Size = new System.Drawing.Size(800, 600);
swf.TabIndex = 0;
f.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
f.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
f.ClientSize = new System.Drawing.Size(800, 600);
f.Controls.Add(swf);
f.Name = "Form1";
f.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); ;
f.Text = "lol";
((System.ComponentModel.ISupportInitialize)(swf)).EndInit();
f.ResumeLayout(false);
swf.LoadMovie(0, "http://web2.flashgames.it/giochi/puzzle/kaleid/game.swf");
swf.DisableLocalSecurity();
f.Show();
}
测试程序已经被几个用户的身份运行,没有任何问题,除了一个,那看到这个:
我不要认为问题出在应用程序本身,而是出现在Flash Player中。所以,问题是,我错过了什么?是否有强制窗口具有默认大小的闪光灯设置?
您能提供有关用户设置之间差异的详细信息吗? – Hawxby 2011-02-07 13:21:27
每个测试过的用户都安装了最新的稳定的Flash Player和Shockwave播放器。至于操作系统,唯一遇到问题的用户就是运行Windows 7(只要我可以与他交谈,我会告诉你更多关于他的配置)。其他人有win7 32bit,win7 64bit或winxp。 – kaharas 2011-02-07 13:34:00