Page 1 of 1

external interface problem

Posted: Sat Sep 23, 2006 3:44 pm
by david
Hi. I'm having trouble getting my swf movie to communicate with vb.net 2003. Basically, when a button is clicked in the movie, I'd like something to happen in the host application. The sample application (Sample7_ExternalInterface) using an swf file written in Flash 8 works fine. However, I'm using SwishMax to generate the swf, and it does not work. The suspicious line of code in the movie is flash.external.ExternalInterface.call("Some Function");

I'd appreciate any help. Thanks.

Posted: Sun Sep 24, 2006 8:10 am
by Softanics
Thank you for your question.
Does this tool support external interface? (I have never used SwishMax...)

external interface problem

Posted: Mon Sep 25, 2006 5:20 am
by david
Yes, SwishMax does support an external interface. I found out (from a post on a Swish forum) that I was doing two things wrong. First, the flash.external.ExternalInterface.call method must be assigned to another reference, which is then used instead of the ExternalInterface.call method:

global.eiCall = flash.external.ExternalInterface.call;
eiCall("SomeFunction");

Second, the swf file must be saved as version swf8 (I was saving as an earlier version).

Thanks for your help.