hello,

i need help making a particle explosion, i have a single particle
which moves in a random direction within a (random) maxium amount of 100 pixels,it also has easing on it, so it slows down at the end.

Now i want that particle to bounce (looking from the top on the z-as)
a specific amount of times, within that maxium amount of 100 pixels.

this is the code that i have :

FRAME 1:
Angle = random(360);
RadiansX = Angle/180*Math.PI;
RadiansY = Angle/180*Math.PI;
Distance = 100;
Easing= .03;
TargetX = _x+Math.cos(RadiansX)*Distance;
TargetY = _y+Math.sin(RadiansY)*Distance;

FRAME 2:
this._x += (TargetX-_x)*Easing;
this._y += (TargetY-_y)*Easing;

FRAME 3:
gotoAndPlay(2);

how can i make the ball bounce, lets say 4 times, within that (random) maxium amount of 100 pixels ?

thank in advance vicco.