More problems communicating between flash and vb.net

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hello everyone, its me again.

I have been stuck on this problem forever, and cannot find any
documentation or any help to solve it. From what I have seen online,
what I need to do should be pretty simple, but I am running into
problems with everything I read or try.

I have a flash movie inside of a vb.net application. That part works
fine. The part that I am having problems with is passing information
from the flash movie to the vb application. I have tried using
externalEvent, that has done nothing but waste time. I found a site
that shows how to do it with FSCommand. I have implemented the
function on the site. Here it is:

Private Sub axShockwaveFlash1_FSCommand(ByVal sender As Object, ByVal
e As _
AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent) _
Handles axShockwaveFlash1.FSCommand

' Use a select case statement to filter the command being passed
through
Select Case e.command

Case "yourCustomFSCommandName"
' Output the arguments
MessageBox.Show("The Arguments were: " & e.args)
Case "anotherCustomFSCommandName"
' etc.
End Select
End Sub

Now when I try to run my code, I get the following error:

An unhandled exception of type 'System.TypeLoadException' occurred in
program.exe

Additional information: Could not load type
AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEventHandler
from assembly AxInterop.ShockwaveFlashObjects, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null.


arrrrrrrrrrrrgggggggggghhhhhh

Has anyone else had this problem, or know how to solve it?
 
Hi Dave,
I used flash with some other languages like VB6 and Delphi and i (((
think ))) with the info you provided that the problem is in the .net
Framework translation of the Type Library. this is not a problrm of your
coding this is with the framework.
 
Hi Bishoy,

Thank you for your response. Do you know any way that I can get around
this problem? Is there an update for the library or possibly a way to
roll back to an earlier library?

Thanks
 
I think you can try update your version of Flash Player through Macromedia
web site, www.macromedia.com and try importing the TypeLibrary again to
refresh the translation or encapsulation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top