Multiple Collision

[font=Arial][size=2]Hi,[/size][/font]

[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]
[font=Arial][size=2]
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.

K.David.

[/size][/font]

When you get your char properties from the walls, they’re not onEnterFrame, so you only take the starting ones, not the constant, up-to-date ones…Also I don’t understand why your walls have 3 frames when they could have 1…