このコードは、実行後に Window で Flash を開きます。行う方法はありますか: (ボタンを追加せずに) Flash をクリックすると、イベントが発生しますか?
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();
}