Example #1
0
        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            axFlash.FlashVars = "ABQIAAAA6Je9wEhpps-6h4SLEzfx0hQcnJAsAPU0edVn7hFTQC8ea3A_VBRkCS6mZzjo_25VBG1y_bIKsYiRMg";
            axFlash.Movie = System.Windows.Forms.Application.StartupPath + "\\GoogleMaps.swf";

            proxy = new ExternalInterfaceProxy(axFlash);
            proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall);

            stButton.IsEnabled = true;
            fnButton.IsEnabled = true;
        }
Example #2
0
 public new void Dispose()
 {
     if (_moviePath != null && _proxy != null)
     {
         _proxy.ExternalInterfaceCall -= _ExternalCall;
         _proxy.Dispose();
         FlashMovie.Dispose();
         FlashMovie = null;
         _proxy     = null;
     }
 }
Example #3
0
        public FlashSever()
        {
            InitializeComponent();

            String swfPath = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "TextGenerator.swf";
            this.TextGenerator.LoadMovie(0, swfPath);

            // Create the proxy and register this app to receive notification when the proxy receives
            // a call from ActionScript
            proxy = new ExternalInterfaceProxy(TextGenerator);
            proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall);

            appReady = true;
            Trace.WriteLine("App Init");
        }
Example #4
0
        public MainForm()
        {
            InitializeComponent();

                //cmbEntityList.Items.Add("Wall11");
                //cmbEntityList.Items.Add("Wall12");
                String swfPath = "D:\\PBEdit\\PBEdit\\Editor\\bin\\Editor.swf";
                //String swfPath = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "Editor.swf";
                this.MainFlash.LoadMovie(0, swfPath);

                // Create the proxy and register this app to receive notification when the proxy receives
                // a call from ActionScript
                proxy = new ExternalInterfaceProxy(MainFlash);
                proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall);

                appReady = true;
        }
 public HTTPSimpleStreamInterface(AxShockwaveFlash movie)
 {
     flash = movie;
     proxy = new ExternalInterfaceProxy(flash);
     proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall);
 }
Example #6
0
        private void Initflash()
        {
            //swf文件路径,设置为map文件夹下面的map.swf
            string apppath = Application.StartupPath;
            string swfPath = apppath+"\\Map\\map.swf";
            this.IntrovertIMApp.LoadMovie(0, swfPath);

            // Create the proxy and register this app to receive notification when the proxy receives
            // a call from ActionScript

            proxy = new ExternalInterfaceProxy(IntrovertIMApp);
            proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall);

            appReady = true;
        }
Example #7
0
 public ConnWeb(AxShockwaveFlashObjects.AxShockwaveFlash IntrovertIMApp)
 {
     proxy = new ExternalInterfaceProxy(IntrovertIMApp);
     proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall);
 }