How to identify which 3rd party flash object called a Javascript function? -
i have page multiple flash objects written third party , can't changed. call js function don't seem pass identifying parameters. there way determine inside function flash object called it?
this may not cross-browser compatible, , in end may find "flash" calling function, rather specific movie, way can think of:
function myfunction() { if (myfunction.caller) { console.log("this function's caller " + myfunction.caller); } else { console.log("this function called directly"); } /* rest of function */ }
this should run in firefox , log console.
Comments
Post a Comment