Help! Flash OCX on VS2005

  • Thread starter Thread starter mtczx232
  • Start date Start date
M

mtczx232

the 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
result: on machine with VS installed it's work, but on other, we got
white screen (no error, just not see the Flash movie).

at last I find my mistake, the white screen come when the swf file not
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()
 
I know you posted this flash.ocx file in resource, but I totally need your help with it.

1) AxShockwaveFlashObjects.AxShockwaveFlash is not defined. I tried the "Add Reference" option and pointed to the flash10m.ocx in my directory, but it didn't take.

2) If the flash OCX file is in resources for the app, do I still need to distribute it as a file with the app?

3) Where are you identifying the flash OCX file in resources? When I added flash10m.oxc, the resource name became flash10m

4) Can I use the My.Resources class to reference the flash OCX resource?

Thanks,
J.R.
 
Back
Top