Bodies with restitution having seizures

I've tried a bunch of different settings and searched the forums but still can't find a solution. Whenever I apply a restitution to one of my bodies it hits the ground, bounces normally, but it never stops moving and never settles... it just has like a mini seizure on the floor. Has anyone had this same issue? I can post an example if it helps, but these are my settings:

scale: 800
gravity: 30
iterations: 10
timestep 1/60

restitution on dropped object: 0.5

I've tried a bunch of different settings with similar results, but if anyone notices something weird here let me know! Thanks
Here's an example:

http://www.entrance4.net/box2d/restitution.swf -- click anywhere to drop a ball


Code + source (note that things like Box.create are just classes I made to save space, it's not modifying the box2d code at all):
Code:
public class Restitution extends Sprite {
   private var _b2dScale               :int = 800.0;
   private var _b2dGravity               :b2Vec2 = new b2Vec2(0.0, 30.0);
   private var _b2dIterations            :int = 10.0;
   private var _b2dTimestep            :Number = 1.0/60.0;
   private var _b2dWorld               :b2World;
   private var _b2dDebugSprite            :Sprite = new Sprite();
      
   public function Restitution():void {
      this.addChild(_b2dDebugSprite);
      var b2dWorldAABB:b2AABB = new b2AABB();
      b2dWorldAABB.lowerBound.Set(-100.0, -100.0);
      b2dWorldAABB.upperBound.Set(650, 500);
      _b2dWorld = new b2World(b2dWorldAABB, _b2dGravity, true);
      var debug:Debug = new Debug(_b2dWorld, _b2dDebugSprite, _b2dScale);
      var floor:b2Body = Box.create(_b2dWorld, _b2dScale, 550, 50, {position:new Point(275,390)});
      this.addEventListener(Event.ENTER_FRAME, _loop, false, 0, true);
      stage.addEventListener(MouseEvent.MOUSE_UP, _addBall);
   }
      
   private function _addBall($evt:MouseEvent):void {
      var ball:b2Body = Circle.create(_b2dWorld, _b2dScale, 80, {friction:1, position:new Point(mouseX,-100), restitution:0.5});
      ball.SetMassFromShapes();
   }
      
   private function _loop($evt:Event):void {
      _b2dWorld.Step(_b2dTimestep, _b2dIterations);
   }
}
Scale 800? That would make most objects pretty small.
Also, the floor may have incorrect winding.
Hey thanks for the replies. The scale of 800 was the only way i could figure out to get it to look right... even with settings like this:

scale: 100
gravity: 10,000 - ridiculously high.

The bodies just look like they're falling in slow motion. Not realistic at all. any ideas?
Are you finding the high gravity helps? If you get scale wrong, you run up with objects travelling faster than the max velocity, at which point no amount of gravity makes a difference.
Oh, ok that makes sense then (about max velocity)... I find that lowering the timestep to something like 1/10 helps, otherwise it seems like no matter what my settings are the bodies look like they're falling reaaally slowly.
Time scale is as important as graphics scale. You should have your step input be the same as the time between calls, obviously. I doubt you are running your flash script as low as 10fps, so yes, this would cause oddities.
oo ok, I think I get it now. I don't think I understood timestep from the beginning. It should be 1.0/FPS of the FLA?
you can either set it fixed like 1/FPS or to keep track of the delay between frames like (getTimer()-prevFrameTime)/1000

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