userdata problem no errors but doesnt use the userdata

here is my code
Code:
package {

   import Box2D.Dynamics.*;
   import Box2D.Collision.*;
   import Box2D.Collision.Shapes.*;
   import Box2D.Dynamics.Joints.*;
   import Box2D.Dynamics.Contacts.*;
   import Box2D.Common.*;
   import Box2D.Common.Math.*;
   import flash.events.Event;
   import flash.display.*;
   import flash.display.MovieClip;

   public class PhysicsApp extends Sprite {

      private var nFPS = 30;

      private var m_world:b2World;
      private var m_iterations:int = 8;
      private var m_timeStep:Number = 1.0/nFPS;

      private var nPhysicsScale:Number = 50;

      private var mouseInteraction:MouseInteraction;

      public function PhysicsApp() {

         // Setup world's bounding box, gravity and object sleeping
         var aabbWorld:b2AABB = new b2AABB();
         aabbWorld.lowerBound.Set(-1000.0, -1000.0);
         aabbWorld.upperBound.Set(1000.0, 1000.0);
         var nGravity:b2Vec2 = new b2Vec2(0.0, 10.0);
         var blnAllowSleep:Boolean = true;

         // Create world
         m_world = new b2World(aabbWorld, nGravity, blnAllowSleep);

         // Setup debug draw
         var dbgDraw:b2DebugDraw = new b2DebugDraw();
         var drawSurface:Sprite = new Sprite();
         addChild(drawSurface);
         dbgDraw.m_sprite = drawSurface;
         dbgDraw.m_drawScale = nPhysicsScale;
         dbgDraw.m_fillAlpha = 50;
         dbgDraw.m_lineThickness = 1.0;
         dbgDraw.m_drawFlags = b2DebugDraw.e_shapeBit | b2DebugDraw.e_jointBit;
         m_world.SetDebugDraw(dbgDraw);

         // Setup frame stepping event
         addEventListener(Event.ENTER_FRAME, step, false, 0, true);

         // Add object set to world
         populateWorld();

         // Attach mouse handler for object interaction
         mouseInteraction = new MouseInteraction(m_world, this, nPhysicsScale);

      }
      public function step(e:Event):void {

         m_world.Step(m_timeStep, m_iterations);

      }
      public function populateWorld() {

         // Body Def variable - reused for each body.
         var bodyDef:b2BodyDef;

         // Body variable - reused for each body.
         var newBody:b2Body;

         // Shape Def variables - reused for each shape.
         var polygonDef:b2PolygonDef;
         var circleDef:b2CircleDef;

         // Joint Def variables - reused for each joint.
         var rJointDef:b2RevoluteJointDef;
         var dJointDef:b2DistanceJointDef;

         // Every Body has an ID; arrBodyList stores body ID's for Joints to know what they attach to.
         var arrBodyList:Array = new Array();

         // New Polygon Shape & Body.
         polygonDef = new b2PolygonDef();
         polygonDef.vertexCount = 4;
         polygonDef.vertices[0].Set(0.9999999999999998, -1);
         polygonDef.vertices[1].Set(0.9999999999999998, 1.0000000000000004);
         polygonDef.vertices[2].Set(-1, 1.0000000000000004);
         polygonDef.vertices[3].Set(-1, -1);
         polygonDef.friction = 0.2;
         polygonDef.restitution = 0.4;
         polygonDef.density = 1;
         polygonDef.filter.groupIndex = 0;
         bodyDef = new b2BodyDef();
         bodyDef.position = new b2Vec2(5.668233264462811, 4.833128925619836);
         bodyDef.angle = 0;
         bodyDef.userData = new PhysBox();
         bodyDef.userData.width = 20;
         bodyDef.userData.height = 20;
         newBody = m_world.CreateBody(bodyDef);
         newBody.CreateShape(polygonDef);
         newBody.SetMassFromShapes();








      }
   }
}
it gives no errors but ignores me telling it that i want PhysBox to be the movieclip used to display a box. can someone tell me where im going wrong
take a look at the hello world example.

You need to set the body's userData x,y,r manually after each timestep

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