19 Replies Latest reply on Mar 20, 2016 6:52 AM by Nadia Khuzina

    How to create and call custom functions on symbols?

    T Rollins

      It is pretty clear how to assign mouse and timeline events on symbols, but I can't find any examples of creating a custom function on a symbol, and then calling it from the stage or another symbol. I can make this work wth time-based triggers, but I'd like to just call a function like... sym.getSymbol('manager').doSomethingCustom();


      Putting stuff in the onCreationComplete for the symbol like:


      function doSomethingCustom(){

           console.log('Custom stuff happening');



      And then calling in from the stage like:



      ... just nets a "Timeline error" (these are a b*tch to debug, BTW.)


      So how is this done in Edge compatible syntax?