private void WindowLoaded(object sender, RoutedEventArgs e) { AxShockwaveFlash axFlash = wfh.Child as AxShockwaveFlash; axFlash.Movie = System.Windows.Forms.Application.StartupPath + applicationPath; axFlash.FlashCall += new _IShockwaveFlashEvents_FlashCallEventHandler(axFlash_FlashCall); }
public void InitFlash() { if (!EoLHook.IsHooked) { EoLHook.Hook(); } FlashUtil.Flash?.Dispose(); AxShockwaveFlash flash = new AxShockwaveFlash(); flash.BeginInit(); flash.Name = "flash"; flash.Dock = DockStyle.Fill; flash.TabIndex = 0; flash.FlashCall += FlashUtil.CallHandler; gameContainer.Controls.Add(flash); flash.EndInit(); FlashUtil.Flash = flash; byte[] swf = File.ReadAllBytes("rbot.swf"); using (MemoryStream stream = new MemoryStream()) using (BinaryWriter writer = new BinaryWriter(stream)) { writer.Write(8 + swf.Length); writer.Write(1432769894); writer.Write(swf.Length); writer.Write(swf); writer.Seek(0, SeekOrigin.Begin); flash.OcxState = new AxHost.State(stream, 1, false, null); } EoLHook.Unhook(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FlashView)); this.flashMovie = new AxShockwaveFlashObjects.AxShockwaveFlash(); ((System.ComponentModel.ISupportInitialize)(this.flashMovie)).BeginInit(); this.SuspendLayout(); // // flashMovie // this.flashMovie.Dock = System.Windows.Forms.DockStyle.Fill; this.flashMovie.Enabled = true; this.flashMovie.Location = new System.Drawing.Point(0, 0); this.flashMovie.Name = "flashMovie"; this.flashMovie.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("flashMovie.OcxState"))); this.flashMovie.Size = new System.Drawing.Size(571, 367); this.flashMovie.TabIndex = 0; // // FlashView // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.flashMovie); this.Name = "FlashView"; this.Load += new EventHandler(this.FlashViewLoad); this.Size = new System.Drawing.Size(571, 367); ((System.ComponentModel.ISupportInitialize)(this.flashMovie)).EndInit(); this.ResumeLayout(false); }
private void setupView() { DataEvent de = new DataEvent(EventType.Command, "AS3Context.StartDebugger", null); EventManager.DispatchEvent(this, de); this.flashMovie = new AxShockwaveFlashObjects.AxShockwaveFlash(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PluginUI)); ((System.ComponentModel.ISupportInitialize)(this.flashMovie)).BeginInit(); this.flashMovie.Enabled = true; this.flashMovie.Location = new System.Drawing.Point(0, 0); this.flashMovie.Name = "flashMovie"; this.flashMovie.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("flashMovie.OcxState"))); this.flashMovie.FSCommand += this.FlashMovieFSCommand; this.flashMovie.FlashCall += this.FlashMovieFlashCall; this.flashMovie.Resize += new EventHandler(flashMovie_Resize); this.panel.Controls.Add(this.flashMovie); ((System.ComponentModel.ISupportInitialize)(this.flashMovie)).EndInit(); SetDisplayState(settingObject.DisplayState); }
// Stuff here taken from WPF tutorial // https://msdn.microsoft.com/en-us/library/ms751761%28v=vs.110%29.aspx private void RunExpKai_Loaded(object sender, RoutedEventArgs e) { // Create the interop host control. System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost(); // Create Shockwave Flash control. AxShockwaveFlash flash = new AxShockwaveFlash(); // Assign the shockwave flash control as the host control's child. host.Child = flash; // Add the interop host control to the Grid // control's collection of child controls. this.grid_winformshost.Children.Add(host); string swf_path = System.IO.Directory.GetCurrentDirectory() + "\\api_port.swf"; flash.Location = new System.Drawing.Point(0, 0); flash.LoadMovie(0, swf_path); flash.AllowScriptAccess = "always"; this.flashproxy = new ExternalInterfaceProxy(flash); //string msg = this.flashproxy.Call("api_mission", null).ToString(); }
public LiveFlashHandler(LiveWatchViewModel vm, AxShockwaveFlash flash) { Owner = vm; ShockwaveFlash = flash; Proxy = new ExternalInterfaceProxy(ShockwaveFlash); }
private void Form_Load(object sender, EventArgs e) { AxShockwaveFlash player = new AxShockwaveFlash(); player.CreateControl(); player.WMode = "transparent"; player.AllowScriptAccess = "sameDomain"; player.Loop = false; player.LoadMovie(0, @"encrypt.swf"); }
public void unloadMovie() { fileNameLabel.Text = ""; file = ""; if (flashMovie != null) { IsSWFPlaying = false; flashMovie.Dispose(); flashMovie = null; } }
public static void LoadFlash(AxShockwaveFlash FlashObj, byte[] SwfFile) { using (MemoryStream stream = new MemoryStream( )) using (BinaryWriter writer = new BinaryWriter(stream)) { writer.Write(8 + SwfFile.Length); writer.Write(0x55665566); // 'fUfU' writer.Write(SwfFile.Length); writer.Write(SwfFile); stream.Seek(0, SeekOrigin.Begin); FlashObj.OcxState = new AxShockwaveFlash.State(stream, 1, false, null); } }
private void resetFilesToolStripMenuItem_Click(object sender, EventArgs e) { axShockwaveFlash1.Stop(); axShockwaveFlash1 = new AxShockwaveFlash(); File.Delete(".\\stinkogame.swf"); AcquireAssets aa = new AcquireAssets(); aa.ShowDialog(); string path = Directory.GetCurrentDirectory(); axShockwaveFlash1.LoadMovie(0, path + "\\stinkogame.swf"); }
///<summary> ///flash截取图片操作 /// </summary> public static string SaveFlashImage(AxShockwaveFlash control) { var flashW = control.Width; var flashH = control.Height; string flashPath = ""; string flashFormat = ""; FileInfo finfo = new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"\XML\" + "Screen.xml"); if (finfo.Exists) { //System.Windows.MessageBox.Show(flashPath + ""); //读取XML文档信息 XmlDocument flashXml = new XmlDocument(); //从指定的Url加载xml文档 flashXml.Load(AppDomain.CurrentDomain.BaseDirectory + @"\XML\" + "Screen.xml"); //找出xml中的Screen.xml中的Screen单个节点 XmlNode flashNode = flashXml.SelectSingleNode("Screen"); //获取根节点信息 XmlElement flashElement = (XmlElement)flashNode; //获取保存图片位置 flashPath = flashElement["Location"].InnerText + "\\"; //获取保存图片格式 //System.Windows.Forms.MessageBox.Show(flashPath+""); flashFormat = flashElement["Format"].InnerText; } if (string.IsNullOrEmpty(flashPath)) { flashPath = "C:\\"; } if (string.IsNullOrEmpty(flashFormat)) { flashFormat = ".bmp"; } //GUID(全局统一标识符) string reValue = string.Format("{0}{1}" + flashFormat + "", flashPath, Guid.NewGuid().ToString()); Graphics g0fCtrl = control.CreateGraphics(); var bmp = new Bitmap(flashW, flashH, g0fCtrl); Graphics g0fBbmp = Graphics.FromImage(bmp); IntPtr dc1 = g0fCtrl.GetHdc(); IntPtr dc2 = g0fBbmp.GetHdc(); BitBlt(dc2, 0, 0, flashW, flashH, dc1, 0, 0, SRCCOPY); g0fCtrl.ReleaseHdc(dc1); g0fBbmp.ReleaseHdc(dc2); g0fCtrl.Dispose(); g0fBbmp.Dispose(); bmp.Save(reValue); return(reValue); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(formStart)); this.label2 = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.axShockwaveFlash1 = new AxShockwaveFlashObjects.AxShockwaveFlash(); ((System.ComponentModel.ISupportInitialize)(this.axShockwaveFlash1)).BeginInit(); this.SuspendLayout(); // // label2 // this.label2.Location = new System.Drawing.Point(51, 264); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(361, 19); this.label2.TabIndex = 1; this.label2.Text = "loading...正在准备资源,正在载入工程,正在初始化界面"; this.label2.Visible = false; // // timer1 // this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // axShockwaveFlash1 // this.axShockwaveFlash1.Enabled = true; this.axShockwaveFlash1.Location = new System.Drawing.Point(336, 29); this.axShockwaveFlash1.Name = "axShockwaveFlash1"; this.axShockwaveFlash1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axShockwaveFlash1.OcxState"))); this.axShockwaveFlash1.Size = new System.Drawing.Size(192, 192); this.axShockwaveFlash1.TabIndex = 2; this.axShockwaveFlash1.Visible = false; // // formStart // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.ClientSize = new System.Drawing.Size(628, 325); this.Controls.Add(this.axShockwaveFlash1); this.Controls.Add(this.label2); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "formStart"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Load += new System.EventHandler(this.formStart_Load); ((System.ComponentModel.ISupportInitialize)(this.axShockwaveFlash1)).EndInit(); this.ResumeLayout(false); }
// Credits to someone, if you are hte creator and wish to be credited then contact me public static void LoadFlash(AxShockwaveFlash FlashObj, string Path) { StreamResourceInfo resource = Application.GetResourceStream(new Uri(Path, UriKind.Relative)); using (resource.Stream) { if (resource.ContentType != "application/x-shockwave-flash") { throw new FileFormatException("Path must be a valid swf."); } byte[] data = new byte[resource.Stream.Length]; resource.Stream.Read(data, 0, ( int )resource.Stream.Length); LoadFlash(FlashObj, data); } }
public static void call(AxShockwaveFlash obj, String funcName, String[] ary) { //"<invoke name=\"setPath\" returntype=\"void\"><arguments><string>test</string></arguments></invoke>" String str = "<invoke name=\"" + funcName + "\" returntype=\"void\">"; if (ary.Length > 0) { str += "<arguments>"; for (int i = 0; i < ary.Length; i++) { str += "<string>" + ary[i] + "</string>"; } str += "</arguments>"; } str += "</invoke>"; obj.CallFunction(str); }
private void DisplaySwf(string path) { DockContent content = MainForm.CurDocument; ScintillaControl sci = MainForm.CurSciControl; if (content.Controls.Count == 1) { AxShockwaveFlash flash = new AxShockwaveFlash(); flash.FSCommand += new _IShockwaveFlashEvents_FSCommandEventHandler(flash_FSCommand); flash.Dock = DockStyle.Fill; sci.Visible = false; sci.IsReadOnly = true; sci.Enabled = false; content.Controls.Add(flash); flash.LoadMovie(0, path); } }
private void InitFlashMovie(AxShockwaveFlash flashObj, byte[] swfFile) { using (MemoryStream stm = new MemoryStream()) { using (BinaryWriter writer = new BinaryWriter(stm)) { /* Write length of stream for AxHost.State */ writer.Write(8 + swfFile.Length); /* Write Flash magic 'fUfU' */ writer.Write(0x55665566); /* Length of swf file */ writer.Write(swfFile.Length); writer.Write(swfFile); stm.Seek(0, SeekOrigin.Begin); /* 1 == IPeristStreamInit */ flashObj.OcxState = new AxHost.State(stm, 1, false, null); } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form4)); this.webBrowser1 = new System.Windows.Forms.WebBrowser(); this.axShockwaveFlash1 = new AxShockwaveFlashObjects.AxShockwaveFlash(); ((System.ComponentModel.ISupportInitialize)(this.axShockwaveFlash1)).BeginInit(); this.SuspendLayout(); // // webBrowser1 // this.webBrowser1.Location = new System.Drawing.Point(13, 12); this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); this.webBrowser1.Name = "webBrowser1"; this.webBrowser1.Size = new System.Drawing.Size(237, 71); this.webBrowser1.TabIndex = 1; // // axShockwaveFlash1 // this.axShockwaveFlash1.Enabled = true; this.axShockwaveFlash1.Location = new System.Drawing.Point(12, 111); this.axShockwaveFlash1.Name = "axShockwaveFlash1"; this.axShockwaveFlash1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axShockwaveFlash1.OcxState"))); this.axShockwaveFlash1.Size = new System.Drawing.Size(180, 96); this.axShockwaveFlash1.TabIndex = 2; // // Form4 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Black; this.ClientSize = new System.Drawing.Size(284, 261); this.Controls.Add(this.axShockwaveFlash1); this.Controls.Add(this.webBrowser1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "Form4"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Form4"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; ((System.ComponentModel.ISupportInitialize)(this.axShockwaveFlash1)).EndInit(); this.ResumeLayout(false); }
private void PopupSwf(string path, int width, int height) { PopupViewer viewer = new PopupViewer(); viewer.Text = Path.GetFileName(path) + " - Player"; viewer.Icon = playerIcon; viewer.ClientSize = new Size(width, height); viewer.Location = MainForm.CommandBarManager.Parent.Location; viewer.Left += 6 + 15; viewer.Top += 111 + 15; AxShockwaveFlash flash = new AxShockwaveFlash(); flash.FSCommand += new _IShockwaveFlashEvents_FSCommandEventHandler(flash_FSCommand); flash.Dock = DockStyle.Fill; viewer.Controls.Add(flash); viewer.Show(); flash.LoadMovie(0, path); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(AnimationMaker)); this.player = new AxShockwaveFlash(); ((ISupportInitialize)this.player).BeginInit(); base.SuspendLayout(); this.player.Enabled = true; this.player.Location = new System.Drawing.Point(0, 0); this.player.Name = "player"; this.player.OcxState = (AxHost.State)componentResourceManager.GetObject("player.OcxState"); this.player.Size = new System.Drawing.Size(1000, 500); this.player.TabIndex = 0; this.player.FlashCall += new _IShockwaveFlashEvents_FlashCallEventHandler(this.player_Call); base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.player); base.Name = "AnimationMaker"; base.Size = new System.Drawing.Size(152, 82); ((ISupportInitialize)this.player).EndInit(); base.ResumeLayout(false); }
public FlashMoviePlayerManager(AxShockwaveFlash flash) { this.flash = flash; flash.FlashCall += ExternalCall; }
private void outputLog(AxShockwaveFlash flash, string message) { Logger.Instance.Debug("[FLASH] - " + message); }
public FlashPlayer(bool muteSound, Logger logger) { _muteSound = muteSound; _logger = logger; _control = new AxShockwaveFlash(); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(formMaterialEdit)); this.pictureBoxMaterial = new PictureBox(); this.axShockwaveFlashMaterial = new AxShockwaveFlash(); this.groupBox1 = new GroupBox(); this.BtnOriginal = new Button(); this.BtnStretch = new Button(); this.BtnTile = new Button(); this.BtnZoom = new Button(); this.swfPreviews = new FlowLayoutPanel(); this.timer1 = new Timer(this.components); this.buttonOK = new Button(); ((ISupportInitialize)this.pictureBoxMaterial).BeginInit(); ((ISupportInitialize)this.axShockwaveFlashMaterial).BeginInit(); this.groupBox1.SuspendLayout(); base.SuspendLayout(); this.pictureBoxMaterial.BackColor = System.Drawing.Color.Transparent; this.pictureBoxMaterial.BorderStyle = BorderStyle.FixedSingle; this.pictureBoxMaterial.Location = new System.Drawing.Point(12, 12); this.pictureBoxMaterial.Name = "pictureBoxMaterial"; this.pictureBoxMaterial.Size = new System.Drawing.Size(447, 142); this.pictureBoxMaterial.TabIndex = 0; this.pictureBoxMaterial.TabStop = false; this.axShockwaveFlashMaterial.Enabled = true; this.axShockwaveFlashMaterial.Location = new System.Drawing.Point(515, 166); this.axShockwaveFlashMaterial.Name = "axShockwaveFlashMaterial"; this.axShockwaveFlashMaterial.OcxState = (AxHost.State)componentResourceManager.GetObject("axShockwaveFlashMaterial.OcxState"); this.axShockwaveFlashMaterial.Size = new System.Drawing.Size(192, 192); this.axShockwaveFlashMaterial.TabIndex = 26; this.axShockwaveFlashMaterial.Visible = false; this.groupBox1.Controls.Add(this.BtnOriginal); this.groupBox1.Controls.Add(this.BtnStretch); this.groupBox1.Controls.Add(this.BtnTile); this.groupBox1.Location = new System.Drawing.Point(12, 162); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(447, 60); this.groupBox1.TabIndex = 27; this.groupBox1.TabStop = false; this.groupBox1.Text = "效果展示"; this.BtnOriginal.Location = new System.Drawing.Point(346, 24); this.BtnOriginal.Name = "BtnOriginal"; this.BtnOriginal.Size = new System.Drawing.Size(55, 23); this.BtnOriginal.TabIndex = 4; this.BtnOriginal.Text = "原始"; this.BtnOriginal.UseVisualStyleBackColor = true; this.BtnOriginal.Click += new EventHandler(this.BtnOriginal_Click); this.BtnStretch.Location = new System.Drawing.Point(196, 24); this.BtnStretch.Name = "BtnStretch"; this.BtnStretch.Size = new System.Drawing.Size(55, 23); this.BtnStretch.TabIndex = 3; this.BtnStretch.Text = "拉伸"; this.BtnStretch.UseVisualStyleBackColor = true; this.BtnStretch.Click += new EventHandler(this.BtnStretch_Click); this.BtnTile.Location = new System.Drawing.Point(46, 24); this.BtnTile.Name = "BtnTile"; this.BtnTile.Size = new System.Drawing.Size(55, 23); this.BtnTile.TabIndex = 1; this.BtnTile.Text = "平铺"; this.BtnTile.UseVisualStyleBackColor = true; this.BtnTile.Click += new EventHandler(this.BtnTile_Click); this.BtnZoom.Location = new System.Drawing.Point(727, 131); this.BtnZoom.Name = "BtnZoom"; this.BtnZoom.Size = new System.Drawing.Size(55, 23); this.BtnZoom.TabIndex = 2; this.BtnZoom.Text = "缩放"; this.BtnZoom.UseVisualStyleBackColor = true; this.BtnZoom.Visible = false; this.BtnZoom.Click += new EventHandler(this.BtnZoom_Click); this.swfPreviews.AutoScroll = true; this.swfPreviews.BorderStyle = BorderStyle.FixedSingle; this.swfPreviews.Location = new System.Drawing.Point(515, 44); this.swfPreviews.Name = "swfPreviews"; this.swfPreviews.Size = new System.Drawing.Size(192, 110); this.swfPreviews.TabIndex = 29; this.timer1.Interval = 1000; this.timer1.Tick += new EventHandler(this.timer1_Tick); this.buttonOK.Location = new System.Drawing.Point(189, 236); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(94, 27); this.buttonOK.TabIndex = 30; this.buttonOK.Text = "确认"; this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new EventHandler(this.buttonOK_Click); base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(471, 277); base.Controls.Add(this.buttonOK); base.Controls.Add(this.swfPreviews); base.Controls.Add(this.BtnZoom); base.Controls.Add(this.groupBox1); base.Controls.Add(this.axShockwaveFlashMaterial); base.Controls.Add(this.pictureBoxMaterial); base.FormBorderStyle = FormBorderStyle.FixedSingle; base.Icon = Resources.AppIcon; base.Name = "formMaterialEdit"; base.StartPosition = FormStartPosition.CenterParent; base.Load += new EventHandler(this.formMaterialEdit_Load); ((ISupportInitialize)this.pictureBoxMaterial).EndInit(); ((ISupportInitialize)this.axShockwaveFlashMaterial).EndInit(); this.groupBox1.ResumeLayout(false); base.ResumeLayout(false); }
public void StopFlashAnimation(AxShockwaveFlash ObjShockwaveFlash) { ObjShockwaveFlash.Stop(); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(formBackgroundEffectSelecter)); this.button1 = new Button(); this.panel1 = new Panel(); this.panel_Picture = new FlowLayoutPanel(); this.axShockwaveFlash1 = new AxShockwaveFlash(); this.buttonOk = new Button(); this.buttonAdd = new Button(); this.pictureBox_View = new PictureBox(); this.panel2 = new Panel(); this.panel3 = new Panel(); this.LblBackgroundFillType = new Label(); this.RdoOriginal = new RadioButton(); this.RdoStretch = new RadioButton(); this.RdoTiling = new RadioButton(); this.RdoZoom = new RadioButton(); this.buttonCancel = new Button(); ((ISupportInitialize)this.axShockwaveFlash1).BeginInit(); ((ISupportInitialize)this.pictureBox_View).BeginInit(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); base.SuspendLayout(); this.button1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left); this.button1.Location = new System.Drawing.Point(87, 543); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 21; this.button1.Text = "确定"; this.button1.UseVisualStyleBackColor = true; this.panel1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.panel1.AutoScroll = true; this.panel1.Location = new System.Drawing.Point(2, 1); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(300, 529); this.panel1.TabIndex = 0; this.panel_Picture.AutoScroll = true; this.panel_Picture.BorderStyle = BorderStyle.FixedSingle; this.panel_Picture.Location = new System.Drawing.Point(12, 17); this.panel_Picture.Name = "panel_Picture"; this.panel_Picture.Size = new System.Drawing.Size(470, 190); this.panel_Picture.TabIndex = 0; this.panel_Picture.Click += new EventHandler(this.panel_Picture_Click); this.axShockwaveFlash1.Dock = DockStyle.Fill; this.axShockwaveFlash1.Enabled = true; this.axShockwaveFlash1.Location = new System.Drawing.Point(0, 0); this.axShockwaveFlash1.Name = "axShockwaveFlash1"; this.axShockwaveFlash1.OcxState = (AxHost.State)componentResourceManager.GetObject("axShockwaveFlash1.OcxState"); this.axShockwaveFlash1.Size = new System.Drawing.Size(116, 66); this.axShockwaveFlash1.TabIndex = 25; this.axShockwaveFlash1.Visible = false; this.buttonOk.Location = new System.Drawing.Point(498, 141); this.buttonOk.Name = "buttonOk"; this.buttonOk.Size = new System.Drawing.Size(120, 30); this.buttonOk.TabIndex = 23; this.buttonOk.Text = "确认"; this.buttonOk.UseVisualStyleBackColor = true; this.buttonOk.Click += new EventHandler(this.buttonOk_Click); this.buttonAdd.BackgroundImageLayout = ImageLayout.Zoom; this.buttonAdd.Image = Resources.image_add; this.buttonAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.buttonAdd.Location = new System.Drawing.Point(12, 268); this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.Size = new System.Drawing.Size(119, 30); this.buttonAdd.TabIndex = 22; this.buttonAdd.Text = "添加素材"; this.buttonAdd.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.buttonAdd.UseVisualStyleBackColor = true; this.buttonAdd.Click += new EventHandler(this.buttonAdd_Click); this.pictureBox_View.BackColor = System.Drawing.SystemColors.ActiveCaption; this.pictureBox_View.Dock = DockStyle.Fill; this.pictureBox_View.Location = new System.Drawing.Point(0, 0); this.pictureBox_View.Name = "pictureBox_View"; this.pictureBox_View.Size = new System.Drawing.Size(116, 66); this.pictureBox_View.SizeMode = PictureBoxSizeMode.Zoom; this.pictureBox_View.TabIndex = 24; this.pictureBox_View.TabStop = false; this.panel2.BorderStyle = BorderStyle.Fixed3D; this.panel2.Controls.Add(this.pictureBox_View); this.panel2.Controls.Add(this.axShockwaveFlash1); this.panel2.Location = new System.Drawing.Point(500, 17); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(120, 70); this.panel2.TabIndex = 26; this.panel3.BackColor = System.Drawing.SystemColors.HighlightText; this.panel3.Controls.Add(this.LblBackgroundFillType); this.panel3.Controls.Add(this.RdoOriginal); this.panel3.Controls.Add(this.RdoStretch); this.panel3.Controls.Add(this.RdoTiling); this.panel3.Location = new System.Drawing.Point(12, 224); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(470, 29); this.panel3.TabIndex = 27; this.LblBackgroundFillType.AutoSize = true; this.LblBackgroundFillType.Location = new System.Drawing.Point(3, 9); this.LblBackgroundFillType.Name = "LblBackgroundFillType"; this.LblBackgroundFillType.Size = new System.Drawing.Size(65, 12); this.LblBackgroundFillType.TabIndex = 29; this.LblBackgroundFillType.Text = "背景填充:"; this.RdoOriginal.AutoSize = true; this.RdoOriginal.Location = new System.Drawing.Point(373, 7); this.RdoOriginal.Name = "RdoOriginal"; this.RdoOriginal.Size = new System.Drawing.Size(47, 16); this.RdoOriginal.TabIndex = 2; this.RdoOriginal.TabStop = true; this.RdoOriginal.Text = "原始"; this.RdoOriginal.UseVisualStyleBackColor = true; this.RdoOriginal.CheckedChanged += new EventHandler(this.RdoOriginal_CheckedChanged); this.RdoStretch.AutoSize = true; this.RdoStretch.Location = new System.Drawing.Point(247, 7); this.RdoStretch.Name = "RdoStretch"; this.RdoStretch.Size = new System.Drawing.Size(47, 16); this.RdoStretch.TabIndex = 1; this.RdoStretch.TabStop = true; this.RdoStretch.Text = "拉伸"; this.RdoStretch.UseVisualStyleBackColor = true; this.RdoStretch.CheckedChanged += new EventHandler(this.RdoStretch_CheckedChanged); this.RdoTiling.AutoSize = true; this.RdoTiling.Location = new System.Drawing.Point(124, 7); this.RdoTiling.Name = "RdoTiling"; this.RdoTiling.Size = new System.Drawing.Size(47, 16); this.RdoTiling.TabIndex = 0; this.RdoTiling.TabStop = true; this.RdoTiling.Text = "平铺"; this.RdoTiling.UseVisualStyleBackColor = true; this.RdoTiling.CheckedChanged += new EventHandler(this.RdoTiling_CheckedChanged); this.RdoZoom.AutoSize = true; this.RdoZoom.Location = new System.Drawing.Point(502, 231); this.RdoZoom.Name = "RdoZoom"; this.RdoZoom.Size = new System.Drawing.Size(47, 16); this.RdoZoom.TabIndex = 3; this.RdoZoom.TabStop = true; this.RdoZoom.Text = "缩放"; this.RdoZoom.UseVisualStyleBackColor = true; this.RdoZoom.Visible = false; this.RdoZoom.CheckedChanged += new EventHandler(this.RdoZoom_CheckedChanged); this.buttonCancel.Location = new System.Drawing.Point(498, 177); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(120, 30); this.buttonCancel.TabIndex = 28; this.buttonCancel.Text = "取消"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new EventHandler(this.buttonCancel_Click); base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; base.ClientSize = new System.Drawing.Size(632, 310); base.Controls.Add(this.buttonCancel); base.Controls.Add(this.RdoZoom); base.Controls.Add(this.panel3); base.Controls.Add(this.panel2); base.Controls.Add(this.buttonOk); base.Controls.Add(this.buttonAdd); base.Controls.Add(this.panel_Picture); base.FormBorderStyle = FormBorderStyle.FixedSingle; base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon"); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "formBackgroundEffectSelecter"; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; base.Load += new EventHandler(this.formBackgroundEffectSelecter_Load); ((ISupportInitialize)this.axShockwaveFlash1).EndInit(); ((ISupportInitialize)this.pictureBox_View).EndInit(); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public FlashNativeWindow(AxShockwaveFlash parent) { flash = parent; AssignHandle(parent.Handle); }
public void PlayFlashAnimation(AxShockwaveFlash ObjShockwaveFlash) { ObjShockwaveFlash.Play(); }
/// <summary> /// Creates a new ExternalInterfaceProxy for the specified Shockwave Flash ActiveX control. /// </summary> /// <param name="flashControl">The Shockwave Flash ActiveX control with whom communication /// is managed by this proxy.</param> public ExternalInterfaceProxy(AxShockwaveFlash flashControl) { _flashControl = flashControl; _flashControl.FlashCall += new _IShockwaveFlashEvents_FlashCallEventHandler(_flashControl_FlashCall); }
public void PreInitialize(AxShockwaveFlash flash) { ShockwaveFlash = flash; Proxy = new ExternalInterfaceProxy(ShockwaveFlash); IsPreIntialized = true; }
public AxShockwaveFlashEventMulticaster(AxShockwaveFlash parent) { this.parent = parent; }