reference body

Hi there,
I am new to the WCK in AS3 so please bare with me, it isn't a difficult question.
I have a world movieclip and 2 boxes in them, but how can I, i.e apply forces to those boxes?
Of course I can extend the Box class, but can I also just use their instance name to retrieve information or change some parameters, for example:
Code:
world.box01.GetAngle();
or
Code:
world.box01.ApplyForce( new b2Vec(2, 0), world.box01.GetPosition() );


I want to add gravity to one of those boxes that attracts several other boxes, so working in with multiple classes isn't very effective I think.

Thanks in advance 😉

mrT
It'll look something more like:

world.box01.b2body.ApplyForce(new V2(2, 0), world.box01.b2body.GetPosition());

box01 is the MovieClip, it has a property, b2body, which is the actual Box2D body you'll be calling methods on.

Also, do not instantiate b2Vec2. This is for manipulating points that exist in the C++/alchemy realm. use the V2 class instead.

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