ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
464
464
EMPFEHLEN
-
Hallo,
ich habe hier einen kleinen Movieclip der als Button fungiert, alles so gut so weit.
Was der Button alles an scipt hat ist:
button.onRollOver = function() {
this.gotoAndPlay(3);
};
button.onRollOut = function() {
this.gotoAndPlay(11);
};
button.onPress = function() {
this.gotoAndPlay(21);
};
button.onRelease = function() {
this.gotoAndPlay(23);
};
button.onDragOut = function() {
this.gotoAndPlay(11);
};
Und jetzt habe ich das Problem das wenn ich den Button angekliegt habe und dan den Button mit der Maus verlasse, dass er dan auch noch zusätzlich onRollOut abspielt.
Was ich aber net will, schaut auch net gut aus...
ich habe mir da gedanken gemacht und glaube eben das es mit einen If anweisung gehen könnte, nur weiss ich nicht ganz genau wie
Und ich hoffe das man mir dabei helfen kann !
hier mal der Button <-X
G BDX- Auch die Zukunft hat eine Vergangenheit. -
_|___|___|___|___|___|___|___|___|___|___
___|___|___|___|___|___|___|___|___|___|__
_|___|___|___|___|___|___|___|___|___|___|_
___|___|___|___|___|___|___|___|___|___|___
-
Hallo,
du könntest z.B. die aktuelle Position des Playheads überprüfen:
Code :1 2 3 4 5
button.onRollOut = button.onDragOut = function() { if (_currentframe < 20) { this.gotoAndPlay(11); } };
gruss
Ähnliche Themen
-
Menü Problem onRollOver / onRollout
Von Pauli_92 im Forum Flash PlattformAntworten: 1Letzter Beitrag: 11.09.09, 23:40 -
dynamisches onPress Event
Von BIAsTeR im Forum Flash PlattformAntworten: 1Letzter Beitrag: 12.08.08, 13:19 -
onPress
Von sight011 im Forum Flash PlattformAntworten: 9Letzter Beitrag: 15.05.08, 18:37 -
movieclip.onPress() deaktivieren?
Von timäää im Forum Flash PlattformAntworten: 2Letzter Beitrag: 15.08.06, 21:56 -
onRollOver vs. onRollOut (auf MovieClip/Bild warten)
Von umek im Forum Flash PlattformAntworten: 6Letzter Beitrag: 11.05.05, 01:01





Zitieren
Login





