基本信息
源码名称:winform flash播放器支持 一帧一帧播放 附完整源码
源码大小:0.09M
文件格式:.zip
开发语言:C#
更新时间:2013-04-26
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
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); } } }