ActionScript:
[font=Courier New][color=#007700]var clicked;
//
for (var i = 1; i<=5; i++) {
this["mc"+i].onRollOver = function() {
if (this != _root.clicked) {
this.gotoAndPlay(2);
}
};
this["mc"+i].onRollOut = this["mc"+i].onReleaseOutside=function () {
if (this != _root.clicked) {
this.gotoAndPlay(11);
}
};
this["mc"+i].onRelease = function() {
if (this != _root.clicked) {
// hier die Navigations-Aktion
this.onEnterFrame = function() {
if (this._currentframe == 10) {
this.stop();
delete this.onEnterFrame;
}
};
_root.clicked.gotoAndPlay(11);
_root.clicked.useHandCursor = true;
_root.clicked = this;
this.useHandCursor = false;
}
};
}
[/color][/font]
siehe auch Rewind funktioniert nicht ordentlich!