Frequently when playing around with code I need an object to play around with. So I created a Ball.as class. This testing class for Actionscript 3 is useful because it will just create a ball, with a default size and colour, which I can override if I wish.
I have also given it a bounceEffect() and bounce() public methods.
These will give a bounce effect when it hits a boundary and the latter will make it move and bounce from the boundaries. The boundary at the moment is just stage.stageWidth and stage.stageHeight, but I plan on allowing an object to be sent so that the instance can use its hight and width as the boundaries for bouncing.