I haven't looked into how they make everything efficient, but the source code for their flash viewer is here http://lightfield.stanford.edu/aperture.html