basically, i am following first basic tutorial. its working fine.
i added simple button "reset" where i wanted to restart whole hype simulation or animation.
i created simple function i.e
public function stopHype():void {
bitmapCanvas.stopCapture();
bitmapCanvas.clear();
while(container.numChildren > 0){
container.removeChildAt(0);
}
container = null;
container = new Sprite();
its giving error
[Fault] exception, information=ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
Q. any ideas?
thanks in advance
regards
lala