ERLEDIGT
JA
JA
ANTWORTEN
2
2
ZUGRIFFE
346
346
EMPFEHLEN
-
Hallo,
wie gesagt, ich steig grad nicht mehr durch.
Ich habe eine Animation, die ich vom letzten Frame rückwärts abspielen möchte. Ich habe auch eine onEnterFrame- Funktion. Aber jetzt bin ich verwirrt, weil ich nicht versteh wo ich die Animation auf den letzten Frame setzen soll, da sie ja eigentlich vorgeladen werden muss? Es handelt sich im eine Animation in einem MC in einem Label.
Hier mal meine Methode:
Ich rufe diese Methode aus einer onPress- Funktion auf.PHP-Code:function animationEnterFrame(givenLabel2, givenAni2, myFrame2){
_root[givenLabel2].onEnterFrame = function() {
if (_root[givenLabel2][givenAni2].getBytesLoaded() >= 1 && _root[givenLabel2][givenAni2].getBytesLoaded() >= _root[givenLabel2][givenAni2].getBytesTotal()) {
_root[givenLabel2][givenAni2]._x = 20;
_root[givenLabel2][givenAni2]._y = 235;
_root[givenLabel2][givenAni2].gotoAndStop(myFrame2);
}//end if
}//end onEnterFrame
}//end function
Soweit so gut. Nun würde meine Animation am letzten Frame stehen, aber soweit ich die Sache versteh, muss das rückwärtslaufen alleine in der onEnterFrame stehen, sonst startet er ja immer am letzten Bild.
Ich habe schon mehrere Methoden gefunden, den Film rückwärts laufen zu lassen, aber das greift ja hier nicht.
Wer kann mir weiterhelfen?
Danke und GrußGeändert von Orphelina (22.10.05 um 15:48 Uhr)
Windows XP Prof SP2, Intel Pentium 3,2 GHz 1GB RAM
Flash 8 Prof (8.0), Flash Player 9
Mozilla Firefox 2.0, IE 7.0, Opera 9.02
-
Hi,
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
container.loadMovie("ani.swf"); this.onEnterFrame = function() { container._visible = false; container.stop(); var cur = container.getBytesLoaded(); var max = container.getBytesTotal(); if (cur > 0 && max > 0) { var percent = cur * 100 / max; if (percent >= 100) playReverse(container); } } function playReverse(obj) { obj._visible = true; obj.gotoAndStop(obj._totalframes); this.onEnterFrame = function() { if (obj._currentframe > 1) { obj.prevFrame(); } else { delete this.onEnterFrame; } } }
Gruß
.
-
Hallo,
hatte endlich Zeit es auszuprobieren! Ich habe deinen Code meinen Bedürfnissen angepasst und es klappt
Danke und GrußGeändert von Orphelina (26.10.05 um 10:00 Uhr)
Windows XP Prof SP2, Intel Pentium 3,2 GHz 1GB RAM
Flash 8 Prof (8.0), Flash Player 9
Mozilla Firefox 2.0, IE 7.0, Opera 9.02
Ähnliche Themen
-
bei rollOut tween rückwärts spielen lassen
Von cic3r0 im Forum Flash PlattformAntworten: 2Letzter Beitrag: 13.06.08, 09:13 -
Clip rückwärts spielen?
Von spinchmeister im Forum Videoschnitt, Videotechnik & -produktionAntworten: 1Letzter Beitrag: 15.09.04, 10:03 -
Tutorialfrage: video vorwärts rückwärts spielen
Von hannerl im Forum Flash PlattformAntworten: 18Letzter Beitrag: 08.05.03, 14:43 -
Fremde Seite in einem Frame funktioniert! ....aber dann....
Von felis im Forum HTML-EditorenAntworten: 4Letzter Beitrag: 07.05.02, 15:45 -
Clips Rückwärts spielen!
Von ChristianL im Forum Flash PlattformAntworten: 3Letzter Beitrag: 20.04.02, 13:34





Zitieren
Login





