Destroying Bodies

I am unable to get this to work. After doing:

for(var bb:b2Body = _world.m_bodyList; bb; bb = bb.m_next){
bb.Destroy();
}

I get this error:

TypeError: Error #1010: A term is undefined and has no properties.
at Box2D.Collision::b2BroadPhase/MoveProxy()[C:\Documents and Settings\Colby Cheeze\My Documents\PROJECTS\Flex Projects\Space Crusade\src\Box2D\Collision\b2BroadPhase.as:439]
at Box2D.Collision.Shapes::b2CircleShape/Synchronize()[C:\Documents and Settings\Colby Cheeze\My Documents\PROJECTS\Flex Projects\Space Crusade\src\Box2D\Collision\Shapes\b2CircleShape.as:114]
at Box2D.Dynamics::b2Body/SynchronizeShapes()[C:\Documents and Settings\Colby Cheeze\My Documents\PROJECTS\Flex Projects\Space Crusade\src\Box2D\Dynamics\b2Body.as:390]
at Box2D.Dynamics::b2Island/Solve()[C:\Documents and Settings\Colby Cheeze\My Documents\PROJECTS\Flex Projects\Space Crusade\src\Box2D\Dynamics\b2Island.as:248]
at Box2D.Dynamics::b2World/Step()[C:\Documents and Settings\Colby Cheeze\My Documents\PROJECTS\Flex Projects\Space Crusade\src\Box2D\Dynamics\b2World.as:428]
Please read the 2.0 manual. It discusses how to properly delete bodies in the world's body list.
Okay that error was the wrong one..I actually was just calling the wrong destroy function...here is the error I was actually having for a while. It destroys ONE body and leaves the rest of them: http://www.cheezeworld.com/test.html

here is the destroy function I am using.

public function destroy():void{
for(var bb:b2Body = _world.m_bodyList; bb; bb = bb.m_next){
if(bb.m_userData is Box2dChar){
bb.m_userData.destroy();
}else{
_world.DestroyBody(bb);
}
}
}

Also I think that Box2D is running extremely slow for me...in the demo that comes with it there are tons of things on screen and it runs fine. Any reasons why mine would be getting much less frames per second? It isn't my rendering because I've tested that. The game slows down on the world.step function. *shrug*
Your code is still buggy, please read the manual.
Nevermind I got it to work. The problem was with the loop that the example was using...I found a thread a little ways down that shows how to fix it.

public function destroy():void{
next = _world.m_bodyList;
while (next != null) {
bb = next;
next = next.m_next;

if(bb.m_userData is Box2dChar){
bb.m_userData.destroy();
}else{
_world.DestroyBody(bb);
}
}
}

btw this is my characters destroy method (the one called on bb.m_userData.destroy(); ):

override public function destroy():void{
_parentDisplay.removeChild(_display);
_body.m_world.DestroyBody(_body);
_body = null;
_display = null;
}

Original thread: https://box2d.org/forum/viewtopic.php?t=528