javascriptactionscript-3flashexternalinterface

Get swf file functions names using ExternalInterface?


I found many examples on internet how to call swf file function via ExternalInterface. What i want to know is, is it possible to enumerate somehow swf file functions so i can choice which to call ?


Solution

  • I guess what the asker is wondering, is if there's a way to retrieve all public functions from an SWF (iterate instead of enumerate).
    In that case, the only way I know of would be to create a function like getFuncList() which returns a list of all functions. This does require you to have access to the SWF source however.