art-d-sign
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 15.03.2006, 12:18   #1
TP-Junior
 
Registriert seit: Oct 2005
sonarius macht alles soweit korrekt

Button prevframe - spielt nicht flüssig ab


Hallo,

ich habe eine normales Bewegungstween (von links nach rechts), das ich mit zwei Buttons und as steuere.

Auf dem rechten Button habe ich folgendes as:

Code:
_root.but_right.onPress = function() {
_root.stop();
this.onEnterFrame = function() {
if(_root._currentframe < _root._totalframes) {
_root.nextFrame();
}
}
}


_root.but_right.onRelease = _root.but_right.onReleaseOutside = function() {
if(_root._currentframe < _root._totalframes) {
_root.play();
}
}
Der rechte Button spielt die Animation nach rechts flüssig ab.

Für den linken Button habe ich dieses as:

Code:
_root.but_left.onPress = function() {
_root.stop();
this.onEnterFrame = function() {
if(_root._currentframe > 1) {
_root.prevFrame();
}
else {
    _root.gotoAndStop(_root._totalframes);
     }
}
}

_root.but_left.onRelease = _root.but_left.onReleaseOutside = function() {
if(_root._currentframe > 1) {
_root.play();
}
}
Zwar funktioniert der linke Button, also der Film wird rückwärts abgespielt, aber er springt einfach auf Frame1 und ist damit total abgehackt.

Wie bekomme ich das ganze flüssig hin?
sonarius ist offline   Mit Zitat antworten


Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Flash > Flash 8
Button prevframe - spielt nicht flüssig ab Button prevframe - spielt nicht flüssig ab
« Scroll-MCs dnymisch laden und sliden lassen | Flash leiste on click --> html fenster verändern »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 20:29 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67