optimization

i am doing one level based game...i am using same body made in level 1 and reusing them in next level
is this the beast way to do or i should destroy that body and recreate in next level..

the problem is game become slow after sometime ( making my movable object less fluent )

one more thing for each level i am creating new instance of graphics .and making alpha=0 to make previous graphic object disappear however these graphics are just 1m in length..each level is just having just 3 body

how to make my game faster..
Sounds like you aren't properly releasing references to objects. So after a while you probably have too much going on. Do a google search on memory management in Flash to see how to get rid of things you don't need anymore.
making alpha = 0 doesn't make objects dissapear. They still render etc. Try using object.visible = false; which removes it from the rendering pipeline in flash. However it will still be in memory.

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