public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "*.swf|*.swf";
openFileDialog1.ShowDialog();
if (this.openFileDialog1.FileName.Trim() == "")
return;
try
{
this.axShockwaveFlash1.Movie = this.openFileDialog1.FileName; //浏览FLASH文件
}
catch
{
//提示对话框
MessageBox.Show(this, "打开Flash文件错误!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void button2_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.FileName.Length > 0)
{
this.axShockwaveFlash1.Play(); //播放动画
}
else
{
MessageBox.Show(this, "请选择要播放的Flash动画!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void button3_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.FileName.Length > 0)
{
this.axShockwaveFlash1.Stop(); //停止播放动画
}
else
{
MessageBox.Show(this, "请选择要播放的Flash动画!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void button6_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.FileName.Length > 0)
{
this.axShockwaveFlash1.Rewind(); //播放第一帧动画
}
else
{
MessageBox.Show(this, "请选择要播放的Flash动画!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void button5_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.FileName.Length > 0)
{
this.axShockwaveFlash1.Back(); //播放上一帧动画
}
else
{
MessageBox.Show(this, "请选择要播放的Flash动画!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void button4_Click(object sender, EventArgs e)
{
if (this.openFileDialog1.FileName.Length > 0)
{
this.axShockwaveFlash1.Forward(); //播放下一帧动画
}
else
{
MessageBox.Show(this, "请选择要播放的Flash动画!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
资源文件列表
C#Flash▓Ñ╖┼╞≈/Case03_5.sln , 914
C#Flash▓Ñ╖┼╞≈/Case03_5.suo , 18432
C#Flash▓Ñ╖┼╞≈/Case03_5.v11.suo , 30720
C#Flash▓Ñ╖┼╞≈/Case03_5/bin/Debug/AxInterop.ShockwaveFlashObjects.dll , 28672
C#Flash▓Ñ╖┼╞≈/Case03_5/bin/Debug/Case03_5.exe , 12288
C#Flash▓Ñ╖┼╞≈/Case03_5/bin/Debug/Case03_5.pdb , 24064
C#Flash▓Ñ╖┼╞≈/Case03_5/bin/Debug/Case03_5.vshost.exe , 21464
C#Flash▓Ñ╖┼╞≈/Case03_5/bin/Debug/Case03_5.vshost.exe.manifest , 490
C#Flash▓Ñ╖┼╞≈/Case03_5/bin/Debug/Interop.ShockwaveFlashObjects.dll , 32768
C#Flash▓Ñ╖┼╞≈/Case03_5/Case03_5.csproj , 4593
C#Flash▓Ñ╖┼╞≈/Case03_5/Form1.cs , 3223
C#Flash▓Ñ╖┼╞≈/Case03_5/Form1.Designer.cs , 7913
C#Flash▓Ñ╖┼╞≈/Case03_5/Form1.resx , 6807
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/AxInterop.ShockwaveFlashObjects.dll , 28672
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.csproj.FileListAbsolute.txt , 1463
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.csproj.GenerateResource.Cache , 847
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.csproj.ResolveComReference.cache , 729
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.csprojResolveAssemblyReference.cache , 1757
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.exe , 12288
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.Form1.resources , 795
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.pdb , 24064
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Case03_5.Properties.Resources.resources , 180
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache , 7150
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/Interop.ShockwaveFlashObjects.dll , 32768
C#Flash▓Ñ╖┼╞≈/Case03_5/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll , 4608
C#Flash▓Ñ╖┼╞≈/Case03_5/Program.cs , 489
C#Flash▓Ñ╖┼╞≈/Case03_5/Properties/AssemblyInfo.cs , 1372
C#Flash▓Ñ╖┼╞≈/Case03_5/Properties/Resources.Designer.cs , 2856
C#Flash▓Ñ╖┼╞≈/Case03_5/Properties/Resources.resx , 5612
C#Flash▓Ñ╖┼╞≈/Case03_5/Properties/Settings.Designer.cs , 1108
C#Flash▓Ñ╖┼╞≈/Case03_5/Properties/Settings.settings , 249
