I have a square symbol on the stage: squareHolder
In the Library I have a symbol called: circle
In document.compositionReady I have this code
sym.mySymbol = sym.createChildSymbol('myCircle', 'squareHolder');
I have a button on the stage with the following code:
When I click on the button, I expect the circle to disappear but the squareHolder symbol also disappears.
I am not understanding where the new childSymbol called mySymbol lives. I thought it was inside the squareHolder symbol so I could access it by using
but that isn't working
Using your example, it works fine: see demo http://www.heathrowe.com/edge/mySymbol/
Event handlers as per your example
Stage > compostionReady
//Create an instance of circle symbol and place it into the squareholder element on the stage
sym.mySymbol = sym.createChildSymbol('circle', 'squareHolder');
// Remove child element from element squareholder on click of mybutton
OK. So I was using squareHolder as a symbol rather than en element on the stage.