示例#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;
        }
示例#2
0
 public new void Dispose()
 {
     if (_moviePath != null && _proxy != null)
     {
         _proxy.ExternalInterfaceCall -= _ExternalCall;
         _proxy.Dispose();
         FlashMovie.Dispose();
         FlashMovie = null;
         _proxy     = null;
     }
 }
示例#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");
        }
示例#4
0
文件: MainForm.cs 项目: rinesh/PBEdit
        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);
 }
示例#6
0
文件: Map.cs 项目: vanloc0301/qms3
        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;
        }
示例#7
0
 public ConnWeb(AxShockwaveFlashObjects.AxShockwaveFlash IntrovertIMApp)
 {
     proxy = new ExternalInterfaceProxy(IntrovertIMApp);
     proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall);
 }