Multiple Collision


[font=Arial][size=2]I am having a bit of a trouble working out collision with multiple objects. The point is, if a MC called “ball” collides with a wall on either left side or right side, it should stop. Same goes with top and bottom. Horizontally it is working fine, but vertically it just seems to get stuck.[/size][/font]
Could someone go through the attached file and throw some light on why this is happening.

P.S - The file uses Flash 4 syntax but is programmed using Flash MX.