I would suggest making the cube in a 3d application such as 3ds max. Making each side have a map of the image. Make it rotate and set up the render to do each frame as a bmp then transfer these to flash as an animation.
You could then using accuracy place an image in another layer over the cube once its revolved and have a onmouseover action to enlarge the image.
You could set it up so you could decide which way it would rotate, but you would have to make the individual rotation animation clips.
The best place for tutorials is click here
hope this helps, good luck!