easiest way to clear memory from pool and container object?

21 views
Skip to first unread message

haseeb ahmed

unread,
Mar 10, 2013, 9:59:40 AM3/10/13
to hypefr...@googlegroups.com
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 
Reply all
Reply to author
Forward
0 new messages