TangoBravo Posted August 7, 2008 Posted August 7, 2008 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 Quote
Administrators PlausiblyDamp Posted August 8, 2008 Administrators Posted August 8, 2008 Not tried this at all but if the article is to be beleived the calling syntax would be more like Dim result as String = AxShockwaveFlash1.CallFunction("name=\"callMeFromVB\" returntype=\"xml\">false"); Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.