here is my code for the shooting with angle but it isn’t running please someone help me kanoni is the cannon movie clip and sfaira is the ball
_root.createEmptyMovieClip();
onMouseDown = function () {
g = 9.81;
v = 1;
cos_angle = Math.cos(_level0.kanoni.myDegrees);
sin_angle = Math.sin(level0.kanoni.myDegrees);
root.sfaira._visible = 1;
_root.sfaira._x = _root.kanoni._x;
_root.sfaira._y = _root.kanoni._y;
for (var i = 0; i<155; i += 0.1) {
balla_x = (vv/g)(sin_angle);
balla_y = (vv/g)(sin_angle)*(sin_angle);
_root.sfaira._x = _root.sfaira._x+balla_x;
_root.sfaira._y = _root.sfaira._y+balla_y;}};