|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help! Flash OCX on VS2005the Flash OCX not work on VS2005!
see this link: http://blogs.vbcity.com/drydo/archive/2005/12/07/5731.aspx the Bloger suggest to copy Assembly files from 2003 project, it's work! but must have some direct solution for this problem?? I try to run this solution on another two machines, I got some strange result: on machine with VS installed it's work, but on other, we got white screen (no error, just not see the Flash movie). I find report about thet: http://209.85.129.104/search?q=cache:8A7eRtVpXv0J:forums.microsoft.co... So Have any Idea about this problem? > I try to run this solution on another two machines, I got some strange at last I find my mistake, the white screen come when the swf file not> result: on machine with VS installed it's work, but on other, we got > white screen (no error, just not see the Flash movie). found. tip: dont try to put the Flash on the ToolBar, instead write like
follow code: Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1)) Dim s As New AxShockwaveFlashObjects.AxShockwaveFlash CType(s, System.ComponentModel.ISupportInitialize).BeginInit() s.Enabled = True s.Location = New System.Drawing.Point(8, 8) s.Name = "AxShockwaveFlash1" s.OcxState = CType(resources.GetObject("s.OcxState"), System.Windows.Forms.AxHost.State) s.Size = New System.Drawing.Size(680, 400) CType(s, System.ComponentModel.ISupportInitialize).EndInit() Me.Controls.Add(s) s.Stop() s.Movie = "c:\aa\a.swf" '"segment1.swf" s.Play() |
|||||||||||||||||||||||