Timer: is it possible?

ok I was wondering if it was possible to put a timer of 2sec between to actions:

on (release) {
timer: 2sec
gotoAndPlay(2);
}

how could I have 2 sec between the release and the ‘‘gotoandplay’’ :beam: