Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

what is the best way to delete dynamically-generated symbols from another symbol?

$
0
0

in the onClick handler for 1 symbol, I have:

 

var sandwhichQty1 = sym.createChildSymbol("sandQty1", "Stage");

 

another symbol inside sandQty1 has the onClick method:

 

this.deleteSymbol();

 

which works fine, deleting sandQty1. I'd like to delete it, and others, from another button, in the circumstance where users don't close them this way.

 

I notice that id and class are dynamically assigned to the child symbol, which makes it hard for me.

 

any ideas?


Viewing all articles
Browse latest Browse all 9897

Trending Articles