How can I attach a regular flash movieclip to BoxMan?

I would like to have an animated movieclip "attached" to a variation of BoxMan.

I have actually modified BoxMan so its more of a "CircleMan" (so the user controls a rolling barrel). While trying to add an animation of a clown on top of the barrel, I was successful, however the clown movieclip position update is slightly off and lags when following the barrel. I want the BoxMan barrel object and clown_mc to be exacty in sync.

At the end of the BoxMan.as I have added
world.clown_mc.x = this.x;
world.clown_mc.x = this.x;

Is there another way to do this? Would changing World componet settings for timeStep or position Iterations help? I have played around with them...with no luck...but I'm a WCK Box2D noob.

I have my .fla document set to a Frame Rate of 60. and changing that doesnt seem to help.

Any suggestions on how to keep a standard movieclip's location locked to a box2D object?
Have you tried attaching the clown_mc to circle via a joint? That may work.

[edit] Never mind. It doesn't look like animation works with joints.
Your method will work as long as your position update code runs after the code that sets the position of the BodyShape. This is the code that sets up the listener that updates the bodyShape:

Code:
listenWhileVisible(world, StepEvent.STEP, updateBodyMatrix, false, -10);


See that -10? That means the listener has a priority of -10. If your listener has a lower priority (say -20) it'll run after that code and should sync properly.

Also you could add the clown graphic as a child of the circle. If you don't want it to rotate just set rotation = -parent.rotation each step.
Thanks mayobutter! That did the trick.

The actual code in my version of BoxMan read:

listenWhileVisible(world, StepEvent.STEP, parseInput, false, 10);
So I simply changed it to...
listenWhileVisible(world, StepEvent.STEP, parseInput, false, -10);

The clown_mc now sticks with the barrel circle as desired.

I hesitate to make the clown_mc a child of the barrel because I will be calling varios animation states such has run, idle, and jump using gotoandPlay lable calls and everytime I try to do that with child objects I struggle with null object errors. Your first suggestion works great though!

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