3 Replies Latest reply on Oct 30, 2012 11:39 AM by TimJaramillo

    Code to address Symbols

    edgarTL Level 1

      I'm a bit confused on how to access and control symbols in Edge Animate.  As an example, when I wish to control a symbol timeline with an ID of "oval":

       

      //does not work

      //sym.$("oval").stop();

       

      //works

      //sym.getSymbol("oval").stop();

       

      It seems like I'm required to use the getSymbol() method to have it work.  However, when I add sample text to the main stage and my oval symbol is on the main stage....when a hide() method is called, it works on an element or a symbol without the need for getSymbol()

       

      //works - element

      //sym.$("sampleText").hide();

       

      //works - symbol

      //sym.$("oval").hide();

       

       

      So to summarize, why is the getSymbol() method required for stop() to work on the symbol and not for hide() to work on the symbol?

       

      Any insight is appreciated.