-
1. Re: single function for multiple buttons
Ned Murphy Feb 21, 2012 7:09 AM (in response to DMB89)You should be able to use something like the following....
symbol_1.onRollOver = symbol_2.onRollOver = playFwd;
function playFwd() {
this.onEnterFrame = function () {
if (this._currentframe != 15) {
this.nextFrame();
} else {
this.stop();
delete this.onEnterFrame;
}
}
}
symbol_1.onRollOut = symbol_2.onRollOut = rewind;function rewind() {
this.onEnterFrame = function () {
if (this._currentframe != 1) {
this.prevFrame();
} else {
this.stop();
delete this.onEnterFrame;
}
};
} -
2. Re: single function for multiple buttons
DMB89 Feb 21, 2012 7:11 AM (in response to Ned Murphy)Ah right, didnt know that could be done. I will give that a try and see how i get on
-
3. Re: single function for multiple buttons
Ned Murphy Feb 21, 2012 7:23 AM (in response to DMB89)It works fine for me in a simple test, so hopefully it will play out properly for you.
-
4. Re: single function for multiple buttons
DMB89 Feb 21, 2012 8:05 AM (in response to Ned Murphy)Perfect, cheers