Wait a few seconds, then execute function? Action Delay

Hi,

is it possible to insert a delay before a function is executed.
Here is a simple sample code where it could be used:


myButton.onRelease = function () {
//// INSERT A 3 seconds DELAY BEFORE THE gotoAndPlay is executed
myMC.gotoAndplay("10");
}


This has to be simple…
Thanks