Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

as3 externalinterface addcallback not working

Community Beginner ,
Jan 15, 2014 Jan 15, 2014

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

TOPICS
ActionScript
501
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 16, 2014 Jan 16, 2014
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines