How can I made the ramdom circles move in a sine-wave form?

:jail: Iā€™m trap!!!

I have the MX fla for the ramdon circles movement. I want them to form a sine-wave movement.

I alredy tried Math.sin(X) for it and it wont work.

I would like somebody to help.:frowning:

for a sine effect put this on the mc
[AS]
onClipEvent(enterFrame){
_x+=5
_y=Math.sin(_x*(Math.PI/180))*50
}
[/AS]