Skip to main content
Known Participant
January 16, 2014
Question

as3 externalinterface addcallback not working

  • January 16, 2014
  • 1 reply
  • 525 views

Hi

sorry for my bad english.

i tryed to call function from java script to swf using 'addCallback', but its not working below my code

as3:

ExternalInterface.addCallback("myFun_2", aa);

function aa(va)

{

          txt.text = "working --- 2" + va;

}

JS:

calling_1('working...');

function calling_1(v)

                     {

                              alert(v);

                              getElementById('go').myFun_2(v);

                     }

here not the madatary to send the values, but testing perposs i took.

some one help me whats wrong i did.

thanks in advance

Chandu

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 16, 2014

use swfobject to embed your swf or the sample html shown in the help files.