Apologies for being obtuse. I can't find a single reference of the word remove() in any of the code of that document.
Really, it doesn't matter. Even if I just want to hide it, play it's timeline, or any other action, it's not working. The symbol's ability to properly reference ITSELF is the functionality that isn't working. The sample you gave looks like it's all handled on the top level and not having the functionality triggered through the symbols themselves.
Does that make sense?
Thanks for the help!
Sorry I meant: sym.deleteSymbol();
In the symbols you have:
You can see all the code in the code window.
1 person found this helpful
You'll want to use the deleteSymbol() API.
BTW, you should use the capitalized "Stage" to add it to the Stage - the lower case stage has a special meaning with Animate and might not give you what you want..
In the symbol itself, create a click event on a container div, then:
That being said, you don't need to dynamically create and delete an object. What you can do is to use hide() and show() on an element and use the coordinates of your click to change the CSS value of top/left of this object so that you don't have to do the object management I highlighted above.
Hope that points you in the right direction.
Looks like out posts crossed. The sample was correctly done with
in each symbol.
Thank you to both of you! I wish I could mark them both correct. :-)
No problem. Glad to help .