Animator needs AS Help - Be Cool and Respond!

Howdy - I’ve been animating with FLASH for years and am now reluctantly getting into the programming side for a website.

I am trying to get an image to fade in when a button is rollovered (onRollOver)and then the image fades out when rolled off (onRollOut). It works - usually, but when the user quickly rolls on and off the button area, the image “Sticks” ad ndoes not fade away.

I’m using some object code that simply control the mc on rollover and rollout. “graphic” is the instance name of the mc on a layer below an invisible button on another layer:

on (rollOver) {
graphic.gotoAndPlay(2);
}
on(rollOut){
graphic.gotoAndPlay(10);
}

Any suggestions on how to make this work easier? Thanks very much in advance!