there are several ways to do that, each which has been discussed in this forum - you can search the forum for more complete answers.
here is the outline and code for 2 different ways:
1) use cue points. a cue point placed on the last frame of the video can trigger a function to play ( replay ) the video from the beginning, making an effective loop. ( you will need to import the relevant classes first)