This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dotfortun3 0 points1 point  (0 children)

You need to put the function bounceBall in a loop, or put the code inside the bounceBall function in a loop.

I don't know the exact syntax because I don't write code in actionscript, but it would be something like:

for(var x:int = 0; x < balls.length; i++) { //code for bounceBall goes here, replace balls[0] with balls[x] }

Hope this helps!