AxInterop.ShockwaveFlashObjects missing in COM objects

915 views Asked by At

I am trying to run SWF game in my WPF application. This game accepts some variables which should be constantly updated (about 100 times a second). I did some research and I know that basically there are 2 possibilities to run SWF in WPF:

  1. Embed WebBrowser and pass path to the SWF file.
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // fixes warning about ActiveX security
            string C_Drive_local = "file://127.0.0.1/c$/";
 
            // path of the flash file, here its in C:\DemoContent\bounce.swf
            Uri swfPath = new Uri( C_Drive_local + "DemoContent/bounce.swf");
 
            // load it in the browser
            MySWFBrowser.Source = swfPath;
        }
  1. Use WindowsFormsHost to host an AxShockwaveFlash control
        private void FlashLoaded(object sender, RoutedEventArgs e)
        {
            WindowsFormsHost formHost = new WindowsFormsHost();

            AxShockwaveFlash axShockwaveFlash = new AxShockwaveFlash();

            formHost.Child = axShockwaveFlash;

            mainGrid.Children.Add(formHost);

            string flashPath = Environment.CurrentDirectory;
            flashPath += @"\game.swf";
            
            axShockwaveFlash.Movie = flashPath;
        }

I would like to try with AxShockwaveFlash since it provides methods for setting variables but in my COM objects I can not see AxInterop.ShockwaveFlashObjects.dll I tried to install several different versions of Flash Player but without success. I cannt find any information about it. How can I get AxInterop.ShockwaveFlashObjects.dll ? What should I install to have it?

0

There are 0 answers