How to successfully integrate AS3, Flash and Box2d

Hi,
i have been trying to make a platform game and have achieved some success also coding in AS3 and Flash CS4 , now my platform game is a game where i would like to introduce some concepts like driving up a hill , jumping over and flipping in mid air, i wonder is it possible that i keep the collision detection code, the mouse movement , the graphics animation code in AS3, use graphics created in flash and still use Box2d to create effects on those very objects on which coding has been done using AS3 and flash coding(in the action frame ie).... or in order to develop a game in Box2d i will need to make every thing in Box2d.... if there is any link of tutorial already available please guide me .....


Regards
Jin
After the physics step, you have to update the sprites/movieclips that coincide with the bodies.

How do you keep a reference of the sprite that coincide with the body? The usual way is to store the reference of the sprite inside the body's user data. To update the sprites, you traverse through the world's body list.

Here is an old tutorial: http://www.emanueleferonato.com/2009/03 ... prototype/

The Box2D version is 2.0, but the idea is the same. The differences are that you use m_world.GetBodyList() instead of m_world.m_bodyList, and bb.GetUserData() instead of bb.m_userData.

The updating of the sprites is in line 238.
Thanks jay as always you have been very helpful ...

regards

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