0

I've got an error while creating an AxShockwaveFlash control in VB.NET , when I load a movie , an error appears :

Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown .

This is my code :

Dim animFlashObject As New AxShockwaveFlash
Me.Controls.Add(animFlashObject)
animFlashObject.Movie = "D:\Dé-compilateur de .d2p\data\swf\9014.swf"
animFlashObject.EmbedMovie = True
animFlashObject.Play()
Salah Akbari
  • 39,330
  • 10
  • 79
  • 109
aymen ayoo
  • 92
  • 9

1 Answers1

0

I'm going to try to answer this, keep in mind that my English is not that good.

I think the problem lays with your "url" to the .swf file. Try putting your .swf file in another folder, example: "C:\anotherfolder\movie.swf" it's bin a while since I used vb.net, but I think this is it.

Goodluck

Evert Arends
  • 142
  • 1
  • 11