Interactive Cube with reflection and floor

I’m building this in Flash.

As you can see, when the mouse moves left and right, the cube (with reflection too) spins.
It’s really just a stream of frames that change based on the mouse X position. Simply done to show the concept. Pretty easy

Now, Firstly, how do I make this box also react to the mouse’s vertical movement and then have the cube, and the reflection, and the floor react to that mouse movement as well.
I also want to restrict the vertical movement as well so that you couldn’t go past a certain angle. Like you couldn’t be allowed to flip it upside-down for example. You would have to stay within certain controllable boundaries.
Also, as a controllable option, it would be nice if it had some sort of bounciness/friction to the interaction with the mouse.

Any solid help?
Thank You.