external interface problem

.NET Edition of the F-IN-BOX
david
Posts: 2
Joined: Sat Sep 23, 2006 3:38 pm

external interface problem

Postby david » Sat Sep 23, 2006 3:44 pm

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Sep 24, 2006 8:10 am

Thank you for your question.
Does this tool support external interface? (I have never used SwishMax...)
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

david
Posts: 2
Joined: Sat Sep 23, 2006 3:38 pm

external interface problem

Postby david » Mon Sep 25, 2006 5:20 am

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.


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 21 guests

cron