Skip to content

Instantly share code, notes, and snippets.

@degt
Created February 16, 2015 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save degt/960b6473e82579d981ad to your computer and use it in GitHub Desktop.
Save degt/960b6473e82579d981ad to your computer and use it in GitHub Desktop.
Edge globals functions
Symbol.bindSymbolAction(compId, symbolName, "creationComplete", function(sym, e) {
sym.globalFunction = function(){
// statements
console.log("do something");
}
});
//To call this function from another symbol :
sym.getComposition().getStage().globalFunction();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment