Have you assigned the action "ball" to the ball entity? Thie is required to start the action.

Besides you don't need a loop in the main function...

function main()
{
level_load("TrySprite.wmb"); // load the level
//wait(2); You don't need this
camera.x = 200;
camera.y = 0;
camera.z =-50;
}


Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)