hi, metaphysics.
Don't complicate yourself, just add a transition from the _over state to the _on state in your button, and then in the last frame of the button just put a gotoAndStop(1), so when it finished playing you ensure the button is back on it's first frame again.
If you want to make it play back, which I consider totally unnecesary because the way I explained before, you can do it this way:
-
home_mc.onRollOver = function() {
-
delete this.onEnterFrame;
-
this.gotoAndPlay("_over"); //replaced home_mc with this
-
products_mc.gotoAndStop("_on");
-
}
-
-
products_mc.onRollOut = function() {
-
home_mc.onEnterFrame = function() {
-
if(this._currentframe != 1) { //assuming frame 1 is _on
-
this.prevFrame(); //this will make it go backwards till it reaches frame 1 (or the corresponding one)
-
}
-
}
-
}
-
Anyway, I do not reccomend this last way. Is just unnessesaelry complicating things. You should add an animation to the normal state of the button and make it play that.
Kind regards,
The_Nephilim
I currently have a movie clip buttons that have two Frame Labels: _on to be used when there is no mouseover, and _over in the case of a mouseover.
Currently, my Actionscript looks like:
home_mc.onRollOver = function ()
{
home_mc.gotoAndPlay("_over");
products_mc.gotoAndStop("_on");
}
products_mc.onRollOver = function () {
products_mc.gotoAndPlay("_over");
home_mc.gotoAndStop("_on");
}
I'd like to have it where instead of jumping directly to the 'no mouseover' state that it would play the 'mouseover' backwards so it can be smoother. Is this possible, and if so how can it be?