Rubik's cube in Flash

Hey i was wondering if anyone had an idea on where to start in constructing a rubiks cube in flash. I understand that it would be actionscript heavy but i was wondering if anyone had any similar script or ideas that would help get the process going.

Here is a link a cube i would like to recreate.

http://www.eviltron.com/modules/esp/

Thanks