Reputation: 2276
I have a panel with id "panel" and in this panel I have a scroller with id "scroller" and in this scroller I have a chart with id "chart"
I want to remove the chart I tried
panel.removeChild(chart);
I get this error: the displayObject specified must be a child of the caller.
I tried
scroller.removeChild(chart);
I get another error: try removeElement() and the remove element doesn't work
how can I remove this chart?
Upvotes: 0
Views: 506
Reputation: 422
try removing from the scroller.viewport. Please post the exact code so that we can help you better.
Upvotes: 1