Hi,
how do you remove a scrollpane created dynamically?
I have tried a couple of ways but can’t find any examples on the net.
this.createObject(“ScrollPane”, “cspScrollPane”, this.getNextHighestDepth());
this.destroyObject(“cspScrollPane”); will not work and adding a listener like the one example in flash 8 won’t either.
I know you could create it inside a empty clip and then get rid of the clip, but I’d like to know if there’s a way for the sake of learning.