Changing frames using actionscript

Is it possible to use actionscript to swap the frame to a different one after a certain amount of time i.e 30 seconds.