0
このコードは実行後にウィンドウ内のFlashを開きます。方法はありますか?Flashをクリックすると(ボタンを一切追加せずに)イベントが発生しますか?Flash(.swfファイルタイプ)をクリックするとイベントが発生します
private void Window_Loaded(object sender, RoutedEventArgs e)
{
string filePath = @"C:\Users\IBM\Desktop\snailrunner1.swf";
SWFFileHeader swfFile = new SWFFileHeader(filePath);
this.Width = swfFile.FrameSize.WidthInPixels;
this.Height = swfFile.FrameSize.HeightInPixels;
WindowsFormsHost host = new WindowsFormsHost();
FormFlashLibrary.FlashAxControl play = new FormFlashLibrary.FlashAxControl();
host.Child = play;
grdMain.Children.Add(host);
play.Width = (int) this.Width;
play.Height = (int) this.Height;
play.LoadMovie(filePath);
play.Play();
}
なぜ私はボタンを追加しますか? – Likurg
ボタンを追加していません。私の目的は次のことです:フラッシュをクリックして、ボタンを一切使わずにイベントを発生させます。 – hakunabean
私はあなたのフラッシュを置くあなたの問題を理解できませんか? – Likurg