Ono sto sam uspeo je da iz flash-a pozovem ovaj kod, tj. iz flasha da pozovem js funkciju ali posle toga ne uspevam da iz js pozovem flash funkciju koja ce mi vratiti neki string.
JS:
Code:
a = window["flash_obj"].custom_function();
alert(a);
a = window["flash_obj"].custom_function();
alert(a);
AS:
Code:
import flash.external.*;
ExternalInterface.addCallback("custom_function", null, customFunction);
function customFunction():String
{
return "str";
}
import flash.external.*;
ExternalInterface.addCallback("custom_function", null, customFunction);
function customFunction():String
{
return "str";
}
[Ovu poruku je menjao VladaSu dana 14.06.2003. u 11:22 GMT+1]