Anyone know how to do this?

hi everyone,

i have a question about flash physics. (look at the example for what i want to do). The basic idea is that a ball drops down from the sky and drops into a box. But only if it falls in the middle, if it hits one of the borders i want it to drop in anyway, or to drop out depending where it hits the border. Any help will be appreciated.

I would really like to know if any of you know a good tutorial for thiss (i want it to be AS, so no animation tutorials please :slight_smile: )

thanks, Ric