A "Photo Slideshow Using XML and Flash" question

How can I keep the code from the first part of the tutorial, but make it repeat? It would help me tons.