[cs4] delay for onClipEvent (enterframe) question

Hi, all, I’m new here. I registered because this forum kept on popping up when I asked google my actionscript questions.

I’ll just come right out and admit it, I’m a noob.

I am making a website with a bunch of buttons on a menu bar. When you mouse over a button, a submenu of other buttons pops out of it. I use this code.

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe<this._totalframes)
} else {
if (this._currentframe>1) {

The parent buttons are movie clips, and the sub-buttons are on later frames.
My question is this: how can I delay it so that you have to hold the mouse over the button for a second before the button’s playhead goes to its next frame?

Ideally, I’d like to have the playhead go to the second frame immediately, to change the color of the button on mouseover, and then have a delay before frame 3, when the sub-buttons start to appear.

Can you help me?

Thank you very much, if you can help me with this, and for the help I’ve already gotten from you all just by viewing your past posts. :garfield: