all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

ExternalInterface


ExternalInterface smwoody
9/28/2005 8:53:34 PM
flash actionscript:
I have a C++ project with a dialog box containing a Shockwave Flash Object and
I am loading a shockwave file into the Active X control.

I am trying to use ExternalInterface.addCallback and ExternalInterface.call to
access functions in the C++ project (and vise versa). From the C++ project I am
calling:
myMovie.CallFunction("testFunction");

It compiles but when I run it neither the function in the C++ project nor the
shockwave file are being called.

This is so frustrating! I thought this was supposed to be easier than
fscommand!!! Thanks for any help!

Re: ExternalInterface smwoody
9/28/2005 9:27:19 PM
Nevermind. I found out the answer.

myMovie.CallFunction("<invoke name=\"testFunction\"
returntype=\"xml\"><arguments><bool>false</bool></arguments></invoke>");

Very strange but it works. I found the answer here:
http://www.forum4designers.com/archive128-2005-8-287469.html
AddThis Social Bookmark Button