Error 530
07-19-2005, 06:06 PM
HI,
i have a question i have made a script (one of my first),
but this one doesn't work very well.
In the x position it works really good, it loops, but in the y postion i doesn't loop. And i wanna make it in the y position looping.
Who could help me?
Thankx in forward
the file is attached
Greetings Sander
ps this is the script i used:
Movieclip.prototype.randomMove = function(nextPos, speed) {
nowPoS = this._Y;
difY = nextPos-nowPos;
moveY = difY/speed;
this._Y = nowPos+moveY;
};
i have a question i have made a script (one of my first),
but this one doesn't work very well.
In the x position it works really good, it loops, but in the y postion i doesn't loop. And i wanna make it in the y position looping.
Who could help me?
Thankx in forward
the file is attached
Greetings Sander
ps this is the script i used:
Movieclip.prototype.randomMove = function(nextPos, speed) {
nowPoS = this._Y;
difY = nextPos-nowPos;
moveY = difY/speed;
this._Y = nowPos+moveY;
};