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; }
public new void Dispose() { if (_moviePath != null && _proxy != null) { _proxy.ExternalInterfaceCall -= _ExternalCall; _proxy.Dispose(); FlashMovie.Dispose(); FlashMovie = null; _proxy = null; } }
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"); }
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); }
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; }
public ConnWeb(AxShockwaveFlashObjects.AxShockwaveFlash IntrovertIMApp) { proxy = new ExternalInterfaceProxy(IntrovertIMApp); proxy.ExternalInterfaceCall += new ExternalInterfaceCallEventHandler(proxy_ExternalInterfaceCall); }