With the development of information technology, virtual reality technology has been applied to every field of teaching. This paper showed the design process, design concept and content settings of the virtual experiment based on Flash technology, which used the agarose gel electrophoresis as an example, and illustrated the research and development of this kind of virtual laboratory was important to improve the quality of experimental teaching.