Trying to make a delay then go to a frame after delay

Here is the code i came up with but it doesn’t work any help please ?

 
start = getTimer();
while (start+8000>now) {
 now = getTimer();
gotoAndStop(27);
}
 

help me :diss: (Its for a attack move after the delay the enemy attacks)