-
-
[原创]对某款软件flash提取
-
发表于:
2013-3-26 07:33
8492
-
前言略,直接分析
/**************FlashMainForm*********************/
public class FlashMainForm : Form
{
// Fields
private IContainer components = null;
private AxShockwaveFlash MyFlash;
private Timer timer1;
// Methods
public FlashMainForm()
{
this.InitializeComponent();
}
private string CalSource(string c, string p, string sp)
{
string str = @"myResources\flashs\";
if (c != "")
{
str = str + c + @"\";
}
if (p != "")
{
str = str + p + @"\";
}
if (sp != "")
{
str = str + sp + @"\";
}
return (str + "flash.ec");
}
protected override void Dispose(bool disposing)
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
base.Dispose(disposing);
}
private void MyFlash_FSCommand(object sender, _IShockwaveFlashEvents_FSCommandEvent e)
{
GlobalClass class2;
switch (e.command)
{
case "找影*":
GlobalClass.IsRuiGame = true;
new Resolution().ChangeRes(800, 600);
GlobalClass.FlashImageDirectory = Application.StartupPath + @"\Course\找影*\";
GlobalClass.FlashImagePath = GlobalClass.FlashImageDirectory + "0.jpg";
GlobalClass.FlashFieldPath = GlobalClass.FlashImageDirectory + "FIELD.EC";
GlobalClass.FlashGamePath = GlobalClass.FlashImageDirectory + "GAME.EC";
class2 = new GlobalClass();
if (!class2.IsAllReady())
{
MessageBox.Show("该课件缺少文件,请重新安装");
break;
}
new FlashForm().ShowDialog();
break;
case ......
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!