Constraind anim - bouncing off walls

Hi All,

how is everyone? I’m preparing a presentation for class and I would like to create a animation to better illustrate what I’m doing. I think best way / only way to do this is with actionscript. Below are two states of what I mean with that. I’d appreeciate any ideas…

Best,

m.