I am telling the truth this code wont work.
I got this of Macromedia.com and it wont work.
newBall.prototype.moveBall = function () {
this.MovieClip._x += this.deltaX;
this.MovieClip._y += this.deltaY;
//check if ball hits top of screen
if (this.MovieClip._y<0) {
this.flipY();
}
if (this.MovieClip._x<GamePlayArea[0] || this.MovieClip._
x>GamePlayArea[2]) {
this.flipX();
}
}
if (this.MovieClip._x<GamePlayArea[0] || this.MovieClip._
x>GamePlayArea[2]) {
this.flipX();
}
It will not work!!! I also did set the GamePlayArea
SOMEONE PLEASE HELP ME!!Please