Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi Team,

 

I'm trying to trigger an event in Visual Basic 2008 Express and have Flash 8 react to the event.

 

The best information I've found so far is a discussion about Flash 8 and C# at this location:

http://osflash.org/pipermail/osflash_osflash.org/2005-August/002274.html

 

Supposedly the Flash 8 side looks like this:

// expose a method "activeStateChange" to the container

ExternalInterface.addCallback("callMeFromVB", this, onCalled);

 

I've set up a function in Flash named callMeFromVB.

 

I'm having trouble getting the Visual Basic 2008 side right

It seems that it should be just this simple...

 

AxShockwaveFlash1.CallFunction("callMeFromVB")

(...AxShockwaveFlash1 is defined, of course)

 

But it doesn't work. I just get HRESULT E_FAIL.

 

Can't anyone give me some pointers?

 

Thanks,

Tb

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...