following my previous post announcing Box2D Flex framework i want to share some techniques via examples on how to use the library.

First thing we create add a SkinableContentContainer to and drop some contorls inside it

[gist id=473443]

This, still, does not do anything fancy it just initializes box2d and registers & measures all controls inside our physics container.

next step we add some bindable controls that will change our physics gravity and debug

[gist id=473454]

and the bindable properties to our physics container

[gist id=473449]

now we can play with the gravity sliders and see flex controls bounce around

[iframe src=http://www.codeinvain.com/blog/wp-content/uploads/2010/07/Box2DDemos/Box2DFlex.html width=853 height=540]