I have some code for a button, I'm trying to remove the onRollOver and onRollOut functions and have it automatically play the button effects.
What do I need to do to just have this automatically play?
Code://default size sizeTo = 100; //increase the size and play the effect animation when mouse is over the button onRollOver = function(){ effect.gotoAndPlay(2); sizeTo = 130; } //revert to 100% size when mouse cursor is out onRollOut = function(){ sizeTo = 100; } //dynamically adjust the size of the button onEnterFrame = function(){ caption._xscale = caption._yscale = caption._xscale+((sizeTo)-caption._xscale)/5; }





Reply With Quote