[SOLVED] Gravity not applied to shape

Hello!

I have just started using WCK, and here is my problem.

I have a dynamic shape.Box and I would like to apply a negative gravity to it, so it will move up, like a balloon.
When I do the following at the first frame of the scene, it works fine:
Code:
box.gravityScale = -1;
box.gravityMod = true;

Box moves up.

But when I want it to move up on mouse click, nothing happens.
My code:
Code:
function onClick(event:MouseEvent):void
{
box.gravityScale = -1;
box.gravityMod = true;
}

I hope someone can explain me, what do I do wrong, or just send me a link with working example.
Thank you!
OK. I've solved the problem. 🙂
Box was in sleep mode and gravity didn't apply to it, set autoSleep to false solve the problem.

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