events between Flash 8 and VB 2008

TangoBravo

Newcomer
Joined
May 10, 2008
Messages
1
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
 
Not tried this at all but if the article is to be beleived the calling syntax would be more like
Visual Basic:
Dim result as String = AxShockwaveFlash1.CallFunction("<invoke 
name=\"callMeFromVB\" 
returntype=\"xml\"><arguments><bool>false</bool></arguments></invoke>");
 
Back
Top