Hello 🙂 !!
This is very simple flash physics in AS3.
This script creates a box and makes it bounce around in a container, changing direction when a wall is hit and change profile pictures while box moving.
You can find out the source files from the below link,