Changed the code to use the MovieClip class' getBounds() method to calculate each button's bounds using the stage's coordinate space.