Simple Timer IF statement

I’m building a continous move in flash, and i’m displaying some text and images and want to hold the timeline for about 20 seconds and then resume play again. I’m trying to write a simple timer in AS to keep from having to create 10000 frame long movie clips. Here’s what I have so far:


this.onEnterFrame {
time = getTimer();
if (time == 20) {

Unfortunately, this isn’t working for me, and i’m unsure why. I suspect two things, A: my “time” var takes only a snapshot value of the timer and not a continous value, so the timer never reaches the value of 20. Or, B: I have somesort of syntax wrong and the if never gets a chance to load. This seems like a relitively simple task, and i’m hoping one of you guys can shed some light.