cmq se intendi un sinusoide:

this._lockroot = true;

xctr = 270;// puoi giocare con questo valore
yctr = 200;
max = 100;

for (var j = 0; j < max; j++)
{
_root.pallina.duplicateMovieClip ("pallina"+j, j + max);
_root["pallina"+j].x = random (550) - 160;
_root["pallina"+j].velx = Math.random () * 2 + 5;
_root["pallina"+j].buffer = Math.random () * 15 - 10;
}
stop();

//***************************sul clip
onClipEvent (enterFrame)
{

x += velx;
rad = x * Math.PI/180 // oppure con questo valore

if (x > _root.xctr) x = -_root.xctr;

this._x = _root.xctr + x;

this._y = (300-(Math.cos(rad)*100 ))+ buffer;

//il valore in rosso modifica l'ampiezza dell'onda

}