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
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
//works - symbol
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.
When using Edge-specific API commands, such as stop();, you use sym.getSymbol.
When using jQuery-specific commands, such as hide();, you use the jQuery selector, per your example.
Check the API doc for more details.
That was exactly the answer I needed. I'd already looked through the API but did not see the distinction of Edge vs JQuery methods presented as clearly as you just presented it so thanks much!
No problem, Edgar!
I agree that the API doc is not as clear as it should be. Hopefully the Edge team will hear our discontent with the API doc, and will change it to a more conventional and thorough implementation (like the jQuery API- http://api.jquery.com/).