Get ExternalInterface definitions in Javascript

Posted by Jamal Fanaian on Stack Overflow See other posts from Stack Overflow or by Jamal Fanaian
Published on 2010-01-12T21:03:11Z Indexed on 2010/04/20 22:03 UTC
Read the original article Hit count: 267

Is there a way to get a list of the exposed functions from a Flash object? For example, you could get a list of all methods in an object by executing:

for (var i in object) {
  if (typeof object[i] == "function") {
    console.log(i);
  }
}

The only issue is that this won't expose any methods registered through the ExternalInterfaces API. I can try and see if the function exists (object['method']) and it tells me it is a function, but I would have to guess every existing method in this manner.

NOTE: Obviously, I don't have access to the actionscript.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about actionscript