Looping codes..?

how do u make the codes for a frame loop without flash sayin an error?